public SpecimenCollectionListConfigDetailsVoCollection listSpecimenCollectionDetails(SpecimenCollectionMethod type, Date date) { if(type == null || date == null) throw new CodingRuntimeException("Coding Error = type or date is null (listSpecimenCollectionDetails) "); DayOfWeek dayInst = getDayOfWeek(date); DomainFactory factory = getDomainFactory(); List cfgSpecs = factory.find("from SpecimenCollectionListConfigDetails detail where detail.dayOfWeek = :dayOfWeekInst and id in (select header.detail.id from SpecimenCollectionListConfig header where header.listType = :listType)", new String[]{"dayOfWeekInst","listType"}, new Object[] { getDomLookup(dayInst),getDomLookup(type)}); SpecimenCollectionListConfigDetailsVoCollection voCollSpecimenListConfigDetail = null; if(cfgSpecs != null && cfgSpecs.size() > 0) voCollSpecimenListConfigDetail = SpecimenCollectionListConfigDetailsVoAssembler.createSpecimenCollectionListConfigDetailsVoCollectionFromSpecimenCollectionListConfigDetails(cfgSpecs); return voCollSpecimenListConfigDetail; }