private Event<Notification<EntityManagerFactory>> produceEvent;
@Produces
@ApplicationScoped
public EntityManagerFactory produceFactory(EMFInfo info) {
produceEvent.select(new BeforeImpl()).fire(new EMFNotification(null)); // let app know we're about to create EMF
EntityManagerFactory entityManagerFactory = getFactory(info);
produceEvent.select(new AfterImpl()).fire(new EMFNotification(entityManagerFactory)); // let app know we created EMF
return entityManagerFactory;
}