logger.error("getRate() params null for "+ asset.getTypeIdentificationPG().getNomenclature());
if (logger.isErrorEnabled()) { logger.error("getRate() params null for " + asset.getTypeIdentificationPG().getNomenclature()); }
  public Rate getRate(Asset asset, List params) {    Rate r = null;    // DEBUG//     String myOrgName = parentPlugin.getMyOrg().getItemIdentificationPG().getItemIdentification();    if (consumptionRates == null) {      return r;    }    if (params == null) {      logger.error("getRate() params null for "+		   asset.getTypeIdentificationPG().getNomenclature());//       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.debug("getRate() orgAct null for "+		   asset.getTypeIdentificationPG().getNomenclature());//       if (myOrgName.indexOf("35-ARBN") >= 0) {// 	   System.out.println("getRate() orgAct null for "+// 			      asset.getTypeIdentificationPG().getNomenclature());//       }      return r;    }    HashMap map = (HashMap) consumptionRates.get(asset);    if (map == null) {      logger.error("getRate()  no packagedpol consumption for "+		   asset.getTypeIdentificationPG().getNomenclature());//       if (myOrgName.indexOf("35-ARBN") >= 0) {// 	System.out.println("getRate()  no packagedpol 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());    if (d == null) {      logger.error("getRate() consumption rate null for "+		   asset.getTypeIdentificationPG().getNomenclature());//       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 = CountRate.newEachesPerDay (d.doubleValue()*qty.doubleValue());//     if (myOrgName.indexOf("35-ARBN") >= 0) {//       System.out.println("getRate() Rate is  "+ r +", for "+// 			 asset.getTypeIdentificationPG().getNomenclature());//     }    return r;  }