private JSONArray getChildrenAsJSON(String nodeID) throws Exception {
WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
List<TreeNode> childs = null;
UIPortalNavigation uiPortalNavigation = getChild(UIPortalNavigation.class);
TreeNode tnode = uiPortalNavigation.getTreeNodes().findNodes(nodeID);
if (tnode != null) {
UserNode userNode = uiPortalNavigation.updateNode(tnode.getNode());
if (userNode != null) {
tnode.setExpanded(true);
tnode.setChildren(userNode.getChildren());
childs = tnode.getChildren();
}
}
JSONArray jsChilds = new JSONArray();
if (childs == null) {