PropertyGroupSchedule physicalPGSchedule = milvan.getPhysicalPGSchedule(); PhysicalPG defaultPhysicalPG = (PhysicalPG) physicalPGSchedule.getDefault(); if (defaultPhysicalPG == null) { System.err.println("AmmoTransport: milvan with a null default physicalPG"); } physicalPGSchedule = PropertyGroupFactory.newPhysicalPGSchedule(defaultPhysicalPG); milvan.setPhysicalPGSchedule(physicalPGSchedule);
  protected Asset makeMilvan() {    if (MILVAN_PROTOTYPE == null) {      MILVAN_PROTOTYPE = _gp.getGPFactory().getPrototype(MILVAN_NSN);      if (MILVAN_PROTOTYPE == null) {        System.err.println("AmmoTransport: Error! Unable to get prototype for" +                             " milvan NSN -" + MILVAN_NSN);        return null;      }    }            Container milvan =       (Container)_gp.getGPFactory().createInstance(MILVAN_PROTOTYPE);    // AMMO Cargo Code    NewMovabilityPG movabilityPG =       PropertyGroupFactory.newMovabilityPG(milvan.getMovabilityPG());    movabilityPG.setCargoCategoryCode(AMMO_CATEGORY_CODE);    milvan.setMovabilityPG(movabilityPG);    // Unique Item Identification    NewItemIdentificationPG itemIdentificationPG =       (NewItemIdentificationPG)milvan.getItemIdentificationPG();    String itemID = makeMilvanID();    itemIdentificationPG.setItemIdentification(itemID);    itemIdentificationPG.setNomenclature("Milvan");    itemIdentificationPG.setAlternateItemIdentification(itemID);    milvan.setItemIdentificationPG(itemIdentificationPG);    return milvan;  }