public void removeForNode(LightContextTreeModel model, ContextTreeNode node) {
        int max = node.getChildCount();

        for (int i = 0; i < max; i++) {
          ContextTreeNode aNode = (ContextTreeNode) node.getChildAt(i);
          if (aNode instanceof TitleNode) {
            model.removeNodeFromParent(aNode);
          }
        }
      }
      public void installInNode(LightContextTreeModel model, ContextTreeNode node) {
        MapLayer layer = (MapLayer) node.getUserObject();
        TitleNode mynode = new TitleNode(layer.getTitle(), model);

        model.insetNodeInto(mynode, node, 0);
      }