public Collection getReportTypesUsingReportClassCode(String reportClassCode) throws Exception {
   businessObjectService = KcServiceLocator.getService(BusinessObjectService.class);
   Map<String, String> classReportFreqParams = new HashMap<String, String>();
   classReportFreqParams.put("reportClassCode", reportClassCode);
   Collection<ValidClassReportFrequency> coll =
       businessObjectService.findMatching(ValidClassReportFrequency.class, classReportFreqParams);
   Set<String> reportTypes = new HashSet<String>();
   if (!coll.isEmpty()) {
     for (ValidClassReportFrequency aVcrf : coll) {
       reportTypes.add(aVcrf.getReportCode());
     }
   }
   return reportTypes;
 }
 public Collection getFrequencyBaseUsingFrequencyCode(String frequencyCode) throws Exception {
   businessObjectService = KcServiceLocator.getService(BusinessObjectService.class);
   Map<String, String> params = new HashMap<String, String>();
   params.put("frequencyCode", frequencyCode);
   Collection<ValidFrequencyBase> coll =
       businessObjectService.findMatching(ValidFrequencyBase.class, params);
   Set<String> frequencyBaseCodes = new HashSet<String>();
   if (!coll.isEmpty()) {
     for (ValidFrequencyBase aVcrf : coll) {
       frequencyBaseCodes.add(aVcrf.getFrequencyBaseCode());
     }
   }
   return frequencyBaseCodes;
 }