protected void renderChildren() {
int count = getItemCount();
StringBuffer sb = new StringBuffer();
for (int i = 0; i < count; i++) {
TreeItem child = getItem(i);
Joint joint = child.calculateJoint();
sb.append(child.getUI().getTemplate(child.getId(), child.getText(), child.calculateIconStyle(), joint.value(), getDepth()));
}
getContainer().setInnerHTML(sb.toString());
NodeList<Element> elems = getContainer().getChildNodes().cast();