addExperimentAndComponentsToWorkspace(experiment,
if (experiment != null) addExperimentAndComponentsToWorkspace(experiment,
  protected void startExperimentBuilder() {    Experiment experiment = null;    DefaultMutableTreeNode node = getSelectedNode();    Object o = node.getUserObject();    if (o instanceof SocietyComponent) {      experiment = createExperiment((SocietyComponent)o);      addExperimentAndComponentsToWorkspace(experiment,                                  (DefaultMutableTreeNode) node.getParent());    } else if (o instanceof RecipeComponent) {      experiment = createExperiment((RecipeComponent)o);      addExperimentAndComponentsToWorkspace(experiment,                                  (DefaultMutableTreeNode) node.getParent());    } else if (o instanceof Experiment)       experiment = (Experiment) o;    if (experiment != null)      csmart.runExperimentBuilder(experiment, false);  }