if (!recipe.isEditable()) return false;
  private static boolean isActionAllowedOnRecipe(String action,                                                 Organizer organizer,                                                 RecipeComponent recipe) {    if (isNodeInExperiment(organizer)) {      if (action.equals(DUPLICATE_ACTION) ||          action.equals(DELETE_ACTION))        return false;    }    if (action.equals(DUPLICATE_ACTION))      return true;    if (action.equals(DELETE_ACTION) ||        action.equals(RENAME_ACTION))      return (!CSMART.isRecipeInEditor(recipe));    if (action.equals(CONFIGURE_ACTION))      return !organizer.isComponentInUse(recipe) &&        !CSMART.isRecipeInEditor(recipe);    return false;  }