@Override public UserTransaction get() { if (webBeansContext == null) { webBeansContext = WebBeansContext.currentInstance(); } TransactionService transactionService = webBeansContext.getService(TransactionService.class); if(transactionService != null) { return transactionService.getUserTransaction(); } return null; }
if(transactionService != null) transactionService.registerTransactionSynchronization(phase, observer, event);
if(transactionService != null) transaction = transactionService.getTransaction();