} else if (xaFlags != null &&
!TransactionState.isFlagSet(XAResource.TMNOFLAGS, xaFlags))
{
// This is either a TMJOIN or TMRESUME. We just need to
// update the transaction state
int s = ts.nextState(pktType, xaFlags);
translist.updateState(id, s, true);
} else {
// Brand new transaction
try {
if (con.getClientProtocolVersion() ==