{
CMSNode currentParent = (CMSNode)((CMSNode)nodeTree.getLastSelectedPathComponent()).getParent();
//System.out.println("node:" + node.getName());
//System.out.println("currentParent:" + currentParent.getName());
currentParent.setAreChildrenDefined(false);
model.nodeStructureChanged(currentParent);
node.setAreChildrenDefined(false);
model.nodeStructureChanged(node);
CMSNode addedNode = (CMSNode)nodes.get(addedNodeId);