public PresentAbsentHistoryProblemsVo getHistoryProblems( CareContextRefVo careContextRef) { DomainFactory factory = getDomainFactory(); String strHQL = "from PresentAbsentHistoryProblems p where p.careContext.id = " + careContextRef.getID_CareContext(); List probs = factory.find(strHQL); PresentAbsentHistoryProblemsVoCollection vocollProblems = PresentAbsentHistoryProblemsVoAssembler.createPresentAbsentHistoryProblemsVoCollectionFromPresentAbsentHistoryProblems(probs); if (vocollProblems != null && vocollProblems.size() > 0) return vocollProblems.get(0); else return null; }