public NeedsAssessmentListVoCollection list(CareContextRefVo careContext) { if(careContext == null) throw new DomainRuntimeException("Invalid care context"); DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer("from NeedsAssessment a "); hql.append(" where a.careContext.id = " + careContext.getID_CareContext()); return NeedsAssessmentListVoAssembler.createNeedsAssessmentListVoCollectionFromNeedsAssessment(factory.find(hql.toString())); }