if (action.equals(DELETE_ACTION) || action.equals(RENAME_ACTION))
if (action.equals(organizer.deleteAction) || action.equals(organizer.deleteSocietyAction) || action.equals(organizer.renameAction) || action.equals(organizer.renameSocietyAction))
  private static boolean isActionAllowedOnSociety(String action,                                                  Organizer organizer,                                                  SocietyComponent society) {    if (!society.isEditable())      return false;    if (isNodeInExperiment(organizer)) {      if (action.equals(DUPLICATE_ACTION) ||          action.equals(BUILD_ACTION) ||          action.equals(DELETE_ACTION) ||          action.equals(RUN_ACTION))        return false;    }    if (action.equals(DUPLICATE_ACTION))      return true;    if (action.equals(SAVE_ACTION) && society.isModified())      return (!CSMART.isSocietyInEditor(society));    if (action.equals(DELETE_ACTION) ||        action.equals(RENAME_ACTION))      return (!CSMART.isSocietyInEditor(society));    if (action.equals(CONFIGURE_ACTION) ||        action.equals(BUILD_ACTION) ||        action.equals(RUN_ACTION))      return !organizer.isComponentInUse(society) &&        !CSMART.isSocietyInEditor(society);    return false;  }