foreach(AbstractBlock* inBlock, group->getBlocks()) {
if (inBlock->isFunctionalBlock()) {
FunctionalBlock* funBlock = AB_TO_FUN(inBlock);
foreach(AbstractBlock* inBlock, group->getBlocks()) {
if (inBlock->isFunctionalBlock()) {
FunctionalBlock* funBlock = AB_TO_FUN(inBlock);