logger.error("getRate() params null");
if (logger.isErrorEnabled()) { logger.error("getRate() params null"); }
  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");//       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());      return r;    }    int idx = parts.indexOf(asset);    Double d = (Double)consumptionRates.get(idx);    if (d == null) {      logger.error("getRate() consumption rate null for "+		   asset.getTypeIdentificationPG().getNomenclature());      return r;    }    double  dailyRate = d.doubleValue();    if (orgAct.getOpTempo().toUpperCase().equals(HIGH_OPTEMPO)) {      dailyRate = dailyRate * HIGH_X;    } else if (orgAct.getOpTempo().toUpperCase().equals(MEDIUM_OPTEMPO)) {      dailyRate = dailyRate * MEDIUM_X;    } else if (orgAct.getOpTempo().toUpperCase().equals(LOW_OPTEMPO)) {      dailyRate = dailyRate * LOW_X;    } else {      dailyRate = dailyRate * ZERO_X;    }    r = CountRate.newEachesPerDay (dailyRate*qty.doubleValue());    return r;  }