if (var != null) {
Map sessionMap = facesContext.getExternalContext().getSessionMap();
synchronized (sessionMap) {
responseWriter.startElement("treechildren",component);
treeChildrenComponent.setNodeId(component.getClientId(facesContext));
responseWriter.writeAttribute("id",treeChildrenComponent.getNodeId(), "id");
renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));
for (int i = 0; i < treeNode.getChildCount(); i++) {
encodeTreeNode(facesContext, component, (DefaultMutableTreeNode) treeNode.getChildAt(i), i,"" + i );
}
responseWriter.endElement("treechildren");