public HospitalAtNightPatientDetailVo getHospitalAtNightPatientDetails(HospitalAtNightPatientDetailRefVo hospitalPatientDetails) { if(hospitalPatientDetails == null || hospitalPatientDetails.getID_HospitalAtNightPatientDetail() == null) throw new CodingRuntimeException("Cannot get HospitalAtNightPatientDetailVo on null Id."); return HospitalAtNightPatientDetailVoAssembler.create((HospitalAtNightPatientDetail) getDomainFactory().getDomainObject(HospitalAtNightPatientDetail.class, hospitalPatientDetails.getID_HospitalAtNightPatientDetail())); }