packet = new SessionXAResumeMessage(xid);
}
else if (flags == XAResource.TMNOFLAGS)
{
// Don't need to flush since the previous end will have done this
packet = new SessionXAStartMessage(xid);
}
else
{
throw new XAException(XAException.XAER_INVAL);
}