Iterator statSets = blocks.iterator();
while (statSets.hasNext())
{
frag.append(navigation());
Statistics stats = (Statistics) statSets.next();
frag.append(sectionHeader(stats.getSectionHeader()));
frag.append(topLink());
frag.append(blockExplanation(stats.getExplanation()));
frag.append(floorInfo(stats.getFloor()));
frag.append(statBlock(stats));
}
// output the footer and return
frag.append(footer());