logInvPG.setIsLevel2(false);
logInvPG.setIsLevel2(false); ((NewItemIdentificationPG)inventory.getItemIdentificationPG()).setItemIdentification("Inventory:" + item);
  protected Inventory createInventory(Asset resource, String item) {    double levels[] = null;    Inventory inventory = null;    levels = (double[])inventoryInitHash.get(item);    if (levels != null) {      inventory=(Inventory)getRootFactory().createAsset("Inventory");      ((NewItemIdentificationPG)inventory.getItemIdentificationPG()).setItemIdentification("Inventory:" + item);      NewLogisticsInventoryPG logInvPG = 	(NewLogisticsInventoryPG)PropertyGroupFactory.newLogisticsInventoryPG();      inventory.addOtherPropertyGroup(logInvPG);      if (resource.getTypeIdentificationPG().getTypeIdentification().endsWith("Aggregate")) {        logInvPG.setIsLevel2(true);      } else {        logInvPG.setIsLevel2(false); // will need to key off asset to identify level2 item      }      logInvPG.setCapacity(levels[0]);      logInvPG.setInitialLevel(levels[1]);      logInvPG.setResource(resource);      logInvPG.setOrg(getMyOrganization());      logInvPG.setLogInvBG(new LogisticsInventoryBG(logInvPG));      logInvPG.initialize(startTime, criticalLevel, reorderPeriod, bucketSize, getCurrentTimeMillis(), logToCSV, new Date(logOPlan.getOplanCday()), this);      NewTypeIdentificationPG ti = 	(NewTypeIdentificationPG)inventory.getTypeIdentificationPG();      ti.setTypeIdentification("InventoryAsset");      ti.setNomenclature("Inventory Asset");      NewScheduledContentPG scp;      scp = (NewScheduledContentPG)inventory.getScheduledContentPG();      scp.setAsset(resource);      scp.setSchedule(ScheduleUtils.buildSimpleQuantitySchedule(levels[1], startTime, 								startTime+(TimeUtils.MSEC_PER_DAY*10)));    }    return inventory;  }