if (cmtDialog.processResults()) { final String trialId = cmtDialog.getTrialId(); if (trialId != null) { Experiment experiment = helper.createExperiment(originalExperimentName, cmtDialog.getExperimentName(), cmtDialog.getExperimentId(), trialId); if (experiment != null) addExperimentAndComponentsToWorkspace(experiment, getSelectedNode()); } }
experiment.saveToDb(saveToDbConflictHandler);
          public void run() {            // a potentially long process            if (cmtDialog.processResults()) {              final String trialId = cmtDialog.getTrialId();              if (trialId != null) {                Experiment experiment =                  helper.createExperiment(originalExperimentName,                                          cmtDialog.getExperimentName(),                                          cmtDialog.getExperimentId(),                                           trialId);                if (experiment != null)                  addExperimentAndComponentsToWorkspace(experiment,                                                        getSelectedNode());              }            }                        GUIUtils.timeConsumingTaskEnd(organizer);          }