if (cmtDialog.processResults()) { final String trialId = cmtDialog.getTrialId(); if (trialId != null) { Experiment experiment = helper.createExperiment(originalExperimentName, cmtDialog.getExperimentName(), cmtDialog.getExperimentId(), trialId); if (experiment != null) addDatabaseExperimentToWorkspace(experiment); }
experiment.saveToDb(saveToDbConflictHandler); GUIUtils.timeConsumingTaskEnd(organizer);
        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)                addDatabaseExperimentToWorkspace(experiment);            }          }          GUIUtils.timeConsumingTaskEnd(organizer);        }