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");
}
}
else {
throw new NullPointerException("var is null.");
}