public RemedialShortVoCollection listRemedialByCareContext(CareContextRefVo voCareContextRef) { if (voCareContextRef == null) throw new DomainRuntimeException("CareContextRefVo is null"); DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(); String query = "from Remedial r "; ArrayList markers= new ArrayList(); ArrayList values = new ArrayList(); hql.append(" r.clinicalContact.careContext.id = :cc"); markers.add("cc"); values.add(voCareContextRef.getID_CareContext()); if (markers.size() > 0) query += " where "; query += hql.toString(); List remedial = factory.find(query,markers,values); RemedialShortVoCollection voRemedialColl = RemedialShortVoAssembler.createRemedialShortVoCollectionFromRemedial(remedial); //WDEV-15078 //if(voRemedialColl.size() > 0) return voRemedialColl; //else //return null; }