public AssessmentComponent getInfectionComponent(InfectionControlRepeatableAssessmentVo value) { DomainFactory factory = getDomainFactory(); String hql =" from InfectionControlComponent as infectionControlComponent " + "where infectionControlComponent.infectionControlAssessment.id = "+value.getBoId(); List comps = factory.find(hql); AssessmentComponentCollection result = AssessmentComponentAssembler.createAssessmentComponentCollectionFromAssessmentComponent(comps); if(result.size() >0) return result.get(0); else return null; }