jpa/hibernate5_3/src/main/java/org/jboss/as/jpa/hibernate5/HibernatePersistenceProviderAdaptor.java
private boolean isHibernateExtendedBeanManagerSupported() {
        try {
            Class.forName(HIBERNATE_EXTENDED_BEANMANAGER);
            return true;
        } catch (ClassNotFoundException ignore) {
            return false;
        } catch (NoClassDefFoundError ignore) {
            return false;
        }

    }
private boolean isHibernateExtendedBeanManagerSupported() {
        try {
            Class.forName(HIBERNATE_EXTENDED_BEANMANAGER);
            return true;
        } catch (ClassNotFoundException ignore) {
            return false;
        } catch (NoClassDefFoundError ignore) {
            return false;
        }

    }
private boolean isHibernateExtendedBeanManagerSupported ( ) { try { Class . forName ( HIBERNATE_EXTENDED_BEANMANAGER ) ; return true ; } catch ( ClassNotFoundException ignore ) { return false ; } catch ( NoClassDefFoundError ignore ) { return false ; } }
org.hibernate.jpa.event.spi.jpa.ExtendedBeanManager is added to Hibernate 5.1 as an extension for delaying registration
of entity listeners until the CDI AfterDeploymentValidation event is triggered.
This allows entity listener classes to reference the (origin) persistence unit (WFLY-2387).

return true for Hibernate ORM 5.1+, which should contain the ExtendedBeanManager contract
org . hibernate . jpa . event . spi . jpa . ExtendedBeanManager is added to Hibernate 5 . 1 as an extension for delaying registration of entity listeners until the CDI AfterDeploymentValidation event is triggered . This allows entity listener classes to reference the ( origin ) persistence unit ( WFLY - 2387 ) .