private RateAndCost getRateCost(
     String rateClassCode, String rateTypeCode, String rateClassType, double rate) {
   RateAndCost rateCost = new RateAndCost();
   rateCost.setApplyRateFlag(true);
   rateCost.setRateClassType(rateClassType);
   rateCost.setRateClassCode(rateClassCode);
   rateCost.setRateTypeCode(rateTypeCode);
   rateCost.setAppliedRate(new ScaleTwoDecimal(rate));
   rateCost.setCalculatedCost(ScaleTwoDecimal.ZERO);
   rateCost.setCalculatedCostSharing(ScaleTwoDecimal.ZERO);
   return rateCost;
 }