}
UnspecifiedTransactionContext oldContext = (UnspecifiedTransactionContext) ctx;
BeanTransactionContext newContext = new BeanTransactionContext(txnManager, oldContext);
oldContext.suspend();
try {
newContext.begin();
} catch (SystemException e) {
oldContext.resume();
throw e;
} catch (NotSupportedException e) {
oldContext.resume();