if (action.equals(SAVE_ACTION) && experiment.isModified())
if (action.equals(organizer.saveAction) && experiment.isModified())
  private static boolean isActionAllowedOnExperiment(String action,                                                     Organizer organizer,                                                     Experiment experiment) {    if (action.equals(DUPLICATE_ACTION))      return true;    if (action.equals(SAVE_ACTION) && experiment.isModified())      return !experiment.isEditInProgress();    SocietyComponent society = experiment.getSocietyComponent();    if (society != null && !society.isEditable()) {      return false;    }    RecipeComponent[] recipes = experiment.getRecipeComponents();    for (int i = 0; i < recipes.length; i++) {      if (!recipes[i].isEditable()) {        return false;      }    }    if (society == null) {      if (action.equals(RUN_ACTION) ||          action.equals(CONFIGURE_ACTION))        return false;    }    if (action.equals(RUN_ACTION))      return experiment.isRunnable();    if (action.equals(DELETE_ACTION) ||         action.equals(RENAME_ACTION) ||        action.equals(CONFIGURE_ACTION) ||        action.equals(BUILD_ACTION))      return (!experiment.isEditInProgress() &&              !experiment.isRunInProgress());    return false;  }