/** * Create the ValueObject from the ims.core.admin.domain.objects.Referral object. * * @param map DomainObjectMap of DomainObjects to already created ValueObjects. * @param domainObject */ public static ims.core.vo.PASReferralVo create( DomainObjectMap map, ims.core.admin.domain.objects.Referral domainObject) { if (null == domainObject) { return null; } // check if the domainObject already has a valueObject created for it ims.core.vo.PASReferralVo valueObject = (ims.core.vo.PASReferralVo) map.getValueObject(domainObject, ims.core.vo.PASReferralVo.class); if (null == valueObject) { valueObject = new ims.core.vo.PASReferralVo(domainObject.getId(), domainObject.getVersion()); map.addValueObject(domainObject, valueObject); valueObject = insert(map, valueObject, domainObject); } return valueObject; }