// note: for suspended XAResources, the lookup MUST SUCCEED
// since the TMRESUME must be called on the SAME XAResource
// INSTANCE, and lookup also works on the instance level
try {
suspendedXAResourceTransaction.setXAResource ( xares );
suspendedXAResourceTransaction.xaResume ();
} catch ( XAException xaerr ) {
if ( (XAException.XA_RBBASE <= xaerr.errorCode)
&& (xaerr.errorCode <= XAException.XA_RBEND) )
rethrowAsJtaRollbackException (
"Transaction was already rolled back inside the back-end resource. Further enlists are useless." , xaerr );