public Long getRecordIdFromObject(final UUID objectId, final ObjectType objectType, final TenantContext context) {
        try {
            if (objectBelongsToTheRightTenant(objectId, objectType, context)) {
                return nonEntityDao.retrieveRecordIdFromObject(objectId, objectType, recordIdCacheController);
            } else {
                return null;
            }
        } catch (final ObjectDoesNotExist e) {
            return null;
        }
    }
public Long getRecordIdFromObject ( final UUID objectId , final ObjectType objectType , final TenantContext context ) { try { if ( objectBelongsToTheRightTenant ( objectId , objectType , context ) ) { return nonEntityDao . retrieveRecordIdFromObject ( objectId , objectType , recordIdCacheController ) ; } else { return null ; } } catch ( final ObjectDoesNotExist e ) { return null ; } }
Safe method to retrieve the record id from any object (should only be used by DefaultRecordIdApi)