HHH-7974 - Session.getTenantIdentifier() not callable without active transaction