public PatientInvasiveDeviceVipVo getPatientInvasiveDeviceVip(VIPScoreRefVo id) { if(id == null || id.getID_VIPScore() == null) throw new DomainRuntimeException("Invalid record"); DomainFactory factory = getDomainFactory(); VIPScore domainRecord = (VIPScore)factory.getDomainObject(VIPScore.class, id.getID_VIPScore().intValue()); return PatientInvasiveDeviceVipVoAssembler.create(domainRecord); }