Double d = (Double) consumptionRates.get(orgAct.getActivityName());
HashMap map = (HashMap) consumptionRates.get(asset); if (map == null) { if (myOrgName.indexOf("35-ARBN") >= 0) { System.out.println("getRate()  no bulkpol consumption for "+ asset.getTypeIdentificationPG().getNomenclature()); } return r; } if (myOrgName.indexOf("35-ARBN") >= 0) { System.out.println("getRate() orgAct name "+ orgAct.getOpTempo()+", "+orgAct); } Double d = (Double) map.get(orgAct.getOpTempo().toUpperCase());
  public Rate getRate(Asset asset, List params) {    Rate r = null;    // DEBUG    String myOrgName = parentPlugin.getMyOrg().getItemIdentificationPG().getItemIdentification();    if (params == null) {      logger.error("getRate() params null");      if (myOrgName.indexOf("35-ARBN") >= 0) {	System.out.println("getRate() params null for "+			   asset.getTypeIdentificationPG().getNomenclature());      }      return r;    }    Double qty = (Double)params.get(0);    OrgActivity orgAct = (OrgActivity)params.get(1);    if (orgAct == null) {      logger.error("getRate() orgAct null");      if (myOrgName.indexOf("35-ARBN") >= 0) {	System.out.println("getRate() orgAct null for "+			   asset.getTypeIdentificationPG().getNomenclature());      }      return r;    }    Double d = (Double) consumptionRates.get(orgAct.getActivityName());    if (d == null) {      logger.error("getRate() consumption rate null");      if (myOrgName.indexOf("35-ARBN") >= 0) {	System.out.println("getRate() consumption rate null for "+			   asset.getTypeIdentificationPG().getNomenclature());	System.out.println(" OrgACt "+orgAct);      }      return r;    }    r = FlowRate.newGallonsPerDay (d.doubleValue()*qty.doubleValue());    return r;  }