private List<EgDemandReasonDetails> getDemandReasonDetails(
     final String demandReasonCode,
     final BigDecimal grossAnnualRentAfterDeduction,
     final Installment installment) {
   return persistenceService.findAllByNamedQuery(
       QUERY_DEMANDREASONDETAILS_BY_DEMANDREASON_AND_INSTALLMENT,
       demandReasonCode,
       grossAnnualRentAfterDeduction,
       installment.getFromDate(),
       installment.getToDate());
 }
 public Map<String, Object> getContractorForApprovedWorkOrder() {
   Map<String, Object> contractorsWithWOList = new LinkedHashMap<String, Object>();
   List<Contractor> approvedContractorList =
       contractorService.findAllByNamedQuery("getApprovedContractorsWithWO");
   if (approvedContractorList != null) {
     for (Contractor contractor : approvedContractorList) {
       contractorsWithWOList.put(
           contractor.getId() + "", contractor.getCode() + " - " + contractor.getName());
     }
   }
   return contractorsWithWOList;
 }
  private BoundaryCategory getBoundaryCategory(
      final Boundary zone,
      final Installment installment,
      final Long usageId,
      final Date occupancyDate) {
    List<BoundaryCategory> categories = new ArrayList<BoundaryCategory>();

    categories =
        persistenceService.findAllByNamedQuery(
            QUERY_BASERATE_BY_OCCUPANCY_ZONE,
            zone.getId(),
            usageId,
            occupancyDate,
            installment.getToDate());

    LOGGER.debug("baseRentOfUnit - Installment : " + installment);
    return categories.get(0);
  }
 public List<Installment> getInstallmentListByStartDate(final Date startDate) {
   return persistenceService.findAllByNamedQuery(
       QUERY_INSTALLMENTLISTBY_MODULE_AND_STARTYEAR, startDate, startDate, PTMODULENAME);
 }