/**
  * This method converts the BO to a DTO.
  *
  * @param cfda
  * @param award
  * @return
  */
 protected CfdaDTO boToDTO(CFDA cfda) {
   CfdaDTO cfdaDTO = new CfdaDTO();
   cfdaDTO.setCfdaMaintenanceTypeId(cfda.getCfdaMaintenanceTypeId());
   cfdaDTO.setCfdaNumber(cfda.getCfdaNumber());
   cfdaDTO.setCfdaProgramTitleName(cfda.getCfdaProgramTitleName());
   cfdaDTO.setActive(cfda.getActive());
   return cfdaDTO;
 }
  /**
   * This method is used to return the cfda number of an award.
   *
   * @see org.kuali.kra.external.Cfda.service.CfdaNumberService#getCfdaNumber(java.lang.String)
   */
  public List<CfdaDTO> getCfdaNumber(
      String financialAccountNumber, String financialChartOfAccounts) {

    List<Award> awards = getAwards(financialAccountNumber, financialChartOfAccounts);
    List<CfdaDTO> cfdaNumbers = new ArrayList<CfdaDTO>();
    if (ObjectUtils.isNotNull(awards)) {
      for (Award award : awards) {
        HashMap<String, String> searchCriteria = new HashMap<String, String>();
        searchCriteria.put("cfdaNumber", award.getCfdaNumber());
        if (ObjectUtils.isNotNull(award.getCfdaNumber())) {
          CFDA cfda = (CFDA) businessObjectService.findByPrimaryKey(CFDA.class, searchCriteria);
          if (ObjectUtils.isNotNull(cfda)) {
            CfdaDTO cfdaDTO = boToDTO(cfda);
            cfdaDTO.setAwardId(award.getAwardId() + "");
            cfdaNumbers.add(cfdaDTO);
          }
        }
      }
      return cfdaNumbers;
    } else {
      return null;
    }
  }