ContentKey contentKey = new ContentKey(null, namespace.getFullName(), "namespace");
ContentKey parentKey = null;
if(namespace.getParent() != null)
parentKey = new ContentKey(null, namespace.getParent().getFullName(), "namespace");
TreeNode parent = allContent.get(parentKey);
parent = parent == null ? rootNode : parent;
TreeNode newNode = new DefaultTreeNode("namespace", namespace, parent);
newNode.setExpanded(true);
namespace.setTreeNode(newNode);
allContent.put(contentKey, newNode);
}