TransactionFactoryImple _localFactory = OTSImpleManager.factory();
try
{
ControlImple cont = _localFactory.recreateLocal(ctx);
CurrentImple current = OTSImpleManager.current();
/*
* If this thread is associated with any transactions, then they
* will be lost in favour of this new hierarchy, unless we have
* remembered them explicitly.
*/
if (_remember)
{
try
{
_oldControl = current.suspendWrapper();
}
catch (Exception e)
{
throw new InterpositionFailed();
}
}
current.resumeImple(cont);
// current.resume(cont.getControl());
cont = null;
}