Possible method to find the recipe for a given material.
Thought: There can be more than one recipe for a given material.

public Recipe getRecipe(Material material)
{
    RecipeIterator iterator = new RecipeIterator();
    while(iterator.hasNext())
    {
        Recipe recipe = iterator.next();
         if(recipe.getResult().getType() == material)
         {
            return recipe;
          }
     }
     return null;
}