public ims.therapies.vo.ElectrotherapyTENSVo getElectrotherapyTens(ims.core.vo.ClinicalContactShortVo voClinicalContactShort) { if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null) throw new DomainRuntimeException("Contact not provided for get call. "); DomainFactory factory = getDomainFactory(); ElectrotherapyTENSVo voElectrotherapyTENS = new ElectrotherapyTENSVo(); java.util.List electrotherapyTENSList = factory.find("from ElectrotherapyTENS EctTENS where EctTENS.clinicalContact.id = :contactId", new String[]{"contactId"}, new Object[]{voClinicalContactShort.getID_ClinicalContact()}); ElectrotherapyTENSVoCollection coll = ElectrotherapyTENSVoAssembler.createElectrotherapyTENSVoCollectionFromElectrotherapyTENS(electrotherapyTENSList);// WDEV-13592 if (coll != null && coll.size()>0)// WDEV-13592 voElectrotherapyTENS = coll.get(0); // WDEV-13592 else voElectrotherapyTENS = null; return voElectrotherapyTENS; }