this.callbackRegistry = new CallbackRegistryImpl();
final Object beanManagerRef = configuration.getProperties().get( AvailableSettings.CDI_BEAN_MANAGER );
this.jpaListenerFactory = beanManagerRef == null
? new StandardListenerFactory()
: buildBeanManagerListenerFactory( beanManagerRef );
this.callbackProcessor = new LegacyCallbackProcessor( jpaListenerFactory, configuration.getReflectionManager() );
Iterator classes = configuration.getClassMappings();
while ( classes.hasNext() ) {
final PersistentClass clazz = (PersistentClass) classes.next();
if ( clazz.getClassName() == null ) {