class TransactionScopedContextExtension implements Extension {

    public void afterBeanDiscovery(@Observes AfterBeanDiscovery event, BeanManager manager) {
        event.addContext(new TransactionScopedContextImpl());
        event.addBean(TransactionScopedCDIUtil.createHelperBean(manager,TransactionScopedCDIEventHelperImpl.class));
    }

}