public ReferralAppointmentInvestigationsVo listInvestigations(CatsReferralRefVo refCatsReferralRefVo) { if(refCatsReferralRefVo == null || refCatsReferralRefVo.getID_CatsReferral() == null) throw new CodingRuntimeException("catsReferall is null or id not provided for method listInvestigations"); DomainFactory factory = getDomainFactory(); CatsReferral domCatsReferral = (CatsReferral)factory.getDomainObject(CatsReferral.class, refCatsReferralRefVo.getID_CatsReferral()); if (domCatsReferral == null) return null; return ReferralAppointmentInvestigationsVoAssembler.create(domCatsReferral); }