DefaultMutableTreeNode selectedNode = getSelectedNode();
  public void createExperimentFromUI() {    String name = getUniqueExperimentName("", false);    if (name == null)      return;    DefaultMutableTreeNode selectedNode = getSelectedNode();    SocietyComponent society = new SocietyUIComponent("Society for " + name);    Experiment experiment = new Experiment(name, society, null);    addExperimentToWorkspace(experiment, selectedNode);    addSocietyToWorkspace(society, selectedNode);  }