Getting the ingredient elements from the IngredientList

To get the first ingredient:

     Ingredient ing = ingList.getIngredient(0);

     if( !ing.hasValidElement())

  {

       // We are at the end of the list of Ingredients         ing=null;

       break;

   }

To target all ingredients:

java.util.List ings=ingList.getIngredients();