if(log.isDebugEnabled()) {
if(log.isErrorEnabled()) {
  public void renameExperiment() {    DefaultMutableTreeNode node = getSelectedNode();    final Experiment experiment = (Experiment) node.getUserObject();    String originalName = experiment.getExperimentName();    String newName = getUniqueExperimentName(originalName, true);    if (newName == null)      return;    if (newName.equals(originalName))      return;    experimentNames.remove(originalName);    experiment.setName(newName);    GUIUtils.timeConsumingTaskStart(organizer);    try {      new Thread("SaveExperiment") {          public void run() {            experiment.saveToDb(saveToDbConflictHandler); // save under new name            GUIUtils.timeConsumingTaskEnd(organizer);          }        }.start();    } catch (RuntimeException re) {      if(log.isDebugEnabled()) {        log.error("Runtime exception saving experiment", re);        re.printStackTrace();      }      GUIUtils.timeConsumingTaskEnd(organizer);    }    experimentNames.add(newName);    model.nodeChanged(node);  }