if (res != null)
{
if (res instanceof XAOutcome)
{
XAOutcome co = (XAOutcome) res;
XAException exp = (XAException) co.data();
if (exp == null)
{
if (co.completedStatus().equals(Failure.instance()))
throw new javax.transaction.RollbackException();
}
else
{
switch (exp.errorCode)