Object source = e.getSource(); if (hostTree.getModel().equals(source)) { treeNodesRemovedFromHostTree(e); } else if (nodeTree.getModel().equals(source)) treeNodesRemovedFromNodeTree(e); experimentBuilder.setModified(true);
  public void treeNodesRemoved(TreeModelEvent e) {    //    System.out.println("Tree Node Removed: " +    //                       ((ConsoleTreeObject)((DefaultMutableTreeNode)e.getTreePath().getLastPathComponent()).getUserObject()).getName());    Object source = e.getSource();    if (hostTree.getModel().equals(source)) {      treeNodesRemovedFromHostTree(e);    } else if (nodeTree.getModel().equals(source))      treeNodesRemovedFromNodeTree(e);    experimentBuilder.setModified(true);  }