Xid xid = getXid(tid);
if (xid != null) return xid;
byte[] gtrid = WSATHelper.assignUUID().getBytes();
// xid = XIDFactory.createXID(FFID, gtrid, null);
xid = new XidImpl(FFID, gtrid, null);
String stid = new String(tid);
tids2xids.put(stid, xid);
xids2tids.put(xid, stid);
// if (debugWSAT.isDebugEnabled()) {
// debugWSAT.debug("created mapping foreign Transaction Id " + stid + " to local Xid " + xid);