public HCGTestsVo getHCG(HCGTestsRefVo hcgRef) { if (hcgRef == null || hcgRef.getID_HCGTests() == null) { throw new CodingRuntimeException("Cannot get HCGTest on null Id "); } DomainFactory factory = getDomainFactory(); HCGTests domainHCGTest = (HCGTests) factory.getDomainObject(HCGTests.class, hcgRef.getID_HCGTests()); return HCGTestsVoAssembler.create(domainHCGTest); }