for (int i = 0; i < recipes.size(); i++) { RecipeComponent rc = (RecipeComponent)recipes.get(i); if (rc.getRecipeName().equals(name)) return rc; } return null;
return (RecipeComponent)recipeNames.getObjectInTree(RecipeComponent.class, root, name);
  public RecipeComponent getRecipe(String name) {    for (int i = 0; i < recipes.size(); i++) {      RecipeComponent rc = (RecipeComponent)recipes.get(i);      if (rc.getRecipeName().equals(name))        return rc;    }    return null;  }