//replace the block identify with block content
ListOrderedMap blockList = (ListOrderedMap) fetchRuntimeScope(BLOCK_LIST, 1);
Iterator<Item> mi = blockList.iterator();
int index;
String replace;
Item item;
while( mi.hasNext() ) {
item = mi.next();
replace = SEMI_BLOCK + item.getKey();
while ( (index = sb.indexOf(replace)) > 0 ) {
sb.delete(index, index + replace.length());
sb.insert(index, item.getValue());
}
}
return sb.toString();
}
return buff.toString();