return false; } if (society == null) { if (action.equals(RUN_ACTION) || action.equals(CONFIGURE_ACTION))
  private static boolean isActionAllowedOnExperiment(String action,                                                     Organizer organizer,                                                     Experiment experiment) {    if (action.equals(DUPLICATE_ACTION))      return true;    SocietyComponent society = experiment.getSocietyComponent();    if (CSMART.isSocietyInEditor(society))      return false;    RecipeComponent[] recipes = experiment.getRecipeComponents();    for (int i = 0; i < recipes.length; i++) {      if (CSMART.isRecipeInEditor(recipes[i]))        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;  }