public ims.clinical.vo.PlasticSurgeryAndBurnsVo getPlasticSurgeryAndBurnsVo(ims.core.admin.vo.CareContextRefVo refVoCareContext) { if (refVoCareContext == null) throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. "); if (refVoCareContext != null) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" from PlasticSurgeryAndBurns psb where "); String andStr = " "; ArrayList<String> markers = new ArrayList<String>(); ArrayList<Serializable> values = new ArrayList<Serializable>(); hql.append(andStr + " psb.careContext.id = :careContextId"); markers.add("careContextId"); values.add(refVoCareContext.getID_CareContext()); andStr = " and "; List listNotes = factory.find(hql.toString(), markers, values); if (listNotes != null && listNotes.size() > 0) { PlasticSurgeryAndBurnsVoCollection voColl = PlasticSurgeryAndBurnsVoAssembler.createPlasticSurgeryAndBurnsVoCollectionFromPlasticSurgeryAndBurns(listNotes); if (voColl != null && voColl.size() > 0) return voColl.get(0); } } return null; }