MyInventoryWrapper inv = (MyInventoryWrapper)i.next();
InventoryWrapper inv = (InventoryWrapper)i.next();
    getInventorySchedules(String metricName, Collection inventories)      throws Exception  {    Collection dataAtomCollection = new LinkedList();    for (Iterator i= inventories.iterator(); i.hasNext();)    {      MyInventoryWrapper inv = (MyInventoryWrapper)i.next();      inv.computeSimulatedProjectionSchedules();      Schedule schedule = getInventorySchedule(metricName, inv);      dataAtomCollection.addAll(        createInventoryScheduleDataAtoms((Inventory)inv.getInventory(), schedule));    }    return dataAtomCollection;  }