public UUID getAccountId ( final UUID objectId , final ObjectType objectType , final TenantContext context ) { final Long accountRecordId = getAccountRecordIdSafe ( objectId , objectType , context ) ; if ( accountRecordId != null ) { return nonEntityDao . retrieveIdFromObject ( accountRecordId , ObjectType . ACCOUNT , objectIdCacheController ) ; } else { return null ; } }
Safe method to retrieve the account id from any object