} else if (aNode.getUserObject() instanceof ModifiableConfigurableComponent) { myorg.renameComponent(aNode, newValue.toString());
  private DefaultTreeModel createModel(final Organizer myorg, DefaultMutableTreeNode node) {    return new DefaultTreeModel(node) {	public void valueForPathChanged(TreePath path, Object newValue) {	  if (newValue == null) return;	  DefaultMutableTreeNode aNode = (DefaultMutableTreeNode)path.getLastPathComponent();	  	  if (aNode.getUserObject() instanceof SocietyComponent) {	    //	    System.err.println("Resetting node type to SocietyComponent");	    myorg.renameSociety(aNode, newValue.toString());	    	  } else if (aNode.getUserObject() instanceof ImpactComponent) {	    myorg.renameImpact(aNode, newValue.toString());	  } else if (aNode.getUserObject() instanceof Metric) {	    myorg.renameMetric(aNode, newValue.toString());	  } else if (aNode.getUserObject() instanceof Experiment) {	    myorg.renameExperiment(aNode, newValue.toString());	  } else if (aNode == myorg.root) {	    // trying to rename the workspace	    myorg.renameWorkspace(newValue.toString());	  } else {	    // This must be a folder?	    aNode.setUserObject(newValue);	    nodeChanged(aNode);	  }	  	}      };  }