/**
* This will get called by the EJB integration code
*/
public static void registerTransactionSynchronization(TransactionPhase phase, ObserverMethod<? super Object> observer, Object event, EventMetadata metadata) throws Exception
{
TransactionService transactionService = WebBeansContext.currentInstance().getService(TransactionService.class);
Transaction transaction = null;
if(transactionService != null)
{
transaction = transactionService.getTransaction();
}
if(transaction != null)
{
if (phase.equals(TransactionPhase.AFTER_COMPLETION))