public CarePlanForCopyCarePlansVo getCarePlan(CarePlanRefVo carePlanRef) { if (carePlanRef == null || carePlanRef.getID_CarePlan() == null) { throw new CodingRuntimeException("Cannot get CarePlanVo on null Id "); } DomainFactory factory = getDomainFactory(); CarePlan domainCarePlan = (CarePlan) factory.getDomainObject(CarePlan.class, carePlanRef.getID_CarePlan()); return CarePlanForCopyCarePlansVoAssembler.create(domainCarePlan); }