TransactionState.isFlagSet(XAResource.TMNOFLAGS, xaFlags)) {
id = new TransactionUID();
} else if (xid != null) {
TransactionList translist = handler.getTransactionList();
id = translist.xidToUID(xid);
} else { // XID is null, something is wrong
throw new BrokerException("Invalid xid");
}