addExperimentToWorkspace(experiment,
if (experiment == null) return; addExperimentAndComponentsToWorkspace(experiment,
  protected void startConsole() {    DefaultMutableTreeNode node = getSelectedNode();    Object o = node.getUserObject();    Experiment experiment = null;    if (o instanceof SocietyComponent) {      experiment = createExperiment((SocietyComponent)o);      addExperimentToWorkspace(experiment,                         (DefaultMutableTreeNode) node.getParent());      // can't run if experiment has unbound properties      if (experiment.hasUnboundProperties()) {        csmart.runExperimentBuilder(experiment, false);        return;      }      if (!experiment.hasConfiguration())        experiment.createDefaultConfiguration();      // TODO: this generates an error -- null trial id in PdbBase.put      experiment.saveToDb(saveToDbConflictHandler);    } else if (o instanceof Experiment) {      experiment = (Experiment)o;    }    // Start up the console on the experiment    if (experiment != null)      csmart.runConsole(experiment);  }