/**
  * This method returns the personnel line items.
  *
  * @param budgetPeriod
  * @param personnelCostElement
  * @return
  */
 protected List<BudgetLineItem> getPersonnelLineItems(
     BudgetPeriod budgetPeriod, CostElement personnelCostElement) {
   QueryList lineItemQueryList = new QueryList();
   lineItemQueryList.addAll(budgetPeriod.getBudgetLineItems());
   Equals objectCodeEquals = new Equals("costElement", personnelCostElement.getCostElement());
   QueryList<BudgetLineItem> filteredLineItems = lineItemQueryList.filter(objectCodeEquals);
   return filteredLineItems;
 }
 private QueryList<BudgetLaRate> getBudgetLArates() {
   QueryList<BudgetLaRate> rates = new QueryList<BudgetLaRate>();
   BudgetLaRate br7 =
       getBudgetLaRate(5, 1L, "2010", 5, true, "10", "1", "Y", "07/01/2009", "000001");
   BudgetLaRate br8 =
       getBudgetLaRate(5, 1L, "2010", 5, true, "11", "1", "L", "07/01/2009", "000001");
   BudgetLaRate br9 =
       getBudgetLaRate(5, 1L, "2010", 5, true, "12", "1", "L", "07/01/2009", "000001");
   rates.add(br7);
   rates.add(br8);
   rates.add(br9);
   return rates;
 }
 private QueryList<BudgetRate> getBudgetRates() {
   QueryList<BudgetRate> rates = new QueryList<BudgetRate>();
   BudgetRate brO1 =
       getBudgetRate("1", 50, 1L, "2010", 50, true, "1", "1", "O", "07/01/2009", "000001");
   BudgetRate brO2 =
       getBudgetRate("1", 45, 1L, "2010", 45, true, "2", "1", "O", "07/01/2009", "000001");
   BudgetRate brO3 =
       getBudgetRate("1", 40, 1L, "2010", 40, true, "3", "1", "O", "07/01/2009", "000001");
   BudgetRate brE =
       getBudgetRate("1", 25, 1L, "2010", 25, true, "5", "1", "E", "07/01/2009", "000001");
   BudgetRate brV =
       getBudgetRate("1", 10, 1L, "2010", 10, true, "8", "1", "V", "07/01/2009", "000001");
   BudgetRate brELA =
       getBudgetRate("1", 3, 1L, "2010", 3, true, "5", "3", "E", "07/01/2009", "000001");
   BudgetRate brVLA =
       getBudgetRate("1", 2, 1L, "2010", 2, true, "8", "2", "V", "07/01/2009", "000001");
   BudgetRate brOt =
       getBudgetRate("1", 8, 1L, "2010", 8, true, "9", "1", "X", "07/01/2009", "000001");
   rates.add(brO1);
   rates.add(brO2);
   rates.add(brO3);
   rates.add(brE);
   rates.add(brV);
   rates.add(brOt);
   rates.add(brELA);
   rates.add(brVLA);
   return rates;
 }
 private QueryList<RateAndCost> createRateAndCosts() {
   QueryList<RateAndCost> rateAndCosts = new QueryList<RateAndCost>();
   RateAndCost rc1 = getRateCost("1", "1", "O", 50);
   rateAndCosts.add(rc1);
   RateAndCost rc2 = getRateCost("5", "1", "E", 25);
   rateAndCosts.add(rc2);
   RateAndCost rc3 = getRateCost("8", "1", "V", 10);
   rateAndCosts.add(rc3);
   RateAndCost rc4 = getRateCost("10", "1", "Y", 5);
   rateAndCosts.add(rc4);
   RateAndCost rc5 = getRateCost("11", "1", "L", 5);
   rateAndCosts.add(rc5);
   RateAndCost rc6 = getRateCost("12", "1", "L", 5);
   rateAndCosts.add(rc6);
   RateAndCost rc7 = getRateCost("5", "3", "E", 3);
   rateAndCosts.add(rc7);
   RateAndCost rc8 = getRateCost("8", "2", "V", 2);
   rateAndCosts.add(rc8);
   return rateAndCosts;
 }