private void writeChildGroups(Writer out) throws IOException { boolean writeTr = parent == null; if (children != null) { for (Iterator itr = sortedGroups(); itr.hasNext(); ) { GroupCell gc = (GroupCell) children.get(itr.next()); gc.toHTML(out, writeTr); writeTr = true; } } else { writeRows(out); } }