orgName = parentPlugin.getMyOrg().getItemIdentificationPG().getItemIdentification();
if (parentPlugin != null) orgName = parentPlugin.getMyOrg().getItemIdentificationPG().getItemIdentification(); else { if (logger != null) logger.error("getConsumed - parentPlugin is null!"); else System.err.println("Lvl2AmmoConsBG.getConsumed null parent / logger"); }
  public Collection getConsumed() {    if (orgName == null) {      orgName = parentPlugin.getMyOrg().getItemIdentificationPG().getItemIdentification();    }    if (consumptionRates == null) {      synchronized (cachedDBValues) {        Asset asset = myPG.getMei();        if (asset instanceof AggregateAsset) {          asset = ((AggregateAsset) asset).getAsset();        }        String typeId = asset.getTypeIdentificationPG().getTypeIdentification();        consumptionRates = (HashMap) cachedDBValues.get(typeId);        if (consumptionRates == null) {          Vector result = null;          result = parentPlugin.lookupLevel2AssetConsumptionRate(orgName, asset, supplyType);          if (result == null) {            logger.debug("getConsumed(): Database query returned EMPTY result set for " +                         myPG.getMei() + ", " + supplyType + " " + LEVEL2AMMUNITION);          }          else {            consumptionRates = parseResults(result);            cachedDBValues.put(typeId, consumptionRates);          }        }      }    }    if (consumptionRates == null) {      logger.debug("No consumption rates for " + myPG.getMei() + " at " +                   parentPlugin.getMyOrg().getTypeIdentificationPG().getTypeIdentification());      consumptionRates = new HashMap();    }    return consumptionRates.keySet();  }