public SpecialtyListVoCollection listService(Boolean bActive) { DomainFactory factory = getDomainFactory(); SpecialtyListVoCollection voCollReturn = new SpecialtyListVoCollection(); List lstServices = factory.find("from Service s where s.isActive = :active", new String[]{"active"}, new Object[]{bActive}); for (Iterator iter = lstServices.iterator(); iter.hasNext();) { Service doService = (Service) iter.next(); SpecialtyListVo voBaseList = new SpecialtyListVo(); voBaseList.setSingleID(doService.getId()); voBaseList.setBoolValue(doService.isIsActive()); voBaseList.setName(doService.getServiceName()); if (doService.getTaxonomyMap() != null) { String sDescription = null; List taxonomyMap = doService.getTaxonomyMap(); for (Iterator iter1 = taxonomyMap.iterator(); iter1.hasNext();) { TaxonomyMap doMap = (TaxonomyMap) iter1.next(); { if (doMap.getTaxonomyCode().equals(ims.core.vo.lookups.TaxonomyType.PAS)) sDescription = doMap.getTaxonomyCode(); } } voBaseList.setDescription(sDescription); } voCollReturn.add(voBaseList); } return voCollReturn; }