addExperimentToWorkspace(experiment, selectedNode); addSocietyToWorkspace(society, selectedNode);
DefaultMutableTreeNode experimentNode = addExperimentToWorkspace(experiment, getSelectedNode()); addSocietyToWorkspace(society, experimentNode);
  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);  }