String recipeId = checkRecipeExistence(rc); if (recipeId != null) return recipeId; return insertLibRecipe(rc);
String[] recipeIdAndClass = getRecipeIdAndClass(rc.getRecipeName()); if (recipeIdAndClass != null) { if (isRecipeEqual(recipeIdAndClass, rc)) return recipeIdAndClass[0]; else return insertLibRecipe(rc, recipeIdAndClass[0]); } else return insertLibRecipe(rc, null);
    public String insureLibRecipe(RecipeComponent rc) throws SQLException {        String recipeId = checkRecipeExistence(rc);        if (recipeId != null) return recipeId;        return insertLibRecipe(rc);    }