TransactionXid globalXid = this.transactionContext.getXid();
TransactionXid branchXid = xidFactory.createBranchXid(globalXid);
resourceArchive = new XAResourceArchive();
resourceArchive.setXid(branchXid);
resourceArchive.setDescriptor(descriptor);
<BUG>this.resourceList.add(resourceArchive);
}</BUG>
return true;
}
public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException {

TransactionXid globalXid = this.transactionContext.getXid();
TransactionXid branchXid = xidFactory.createBranchXid(globalXid);
resourceArchive = new XAResourceArchive();
resourceArchive.setXid(branchXid);
resourceArchive.setDescriptor(descriptor);
this.resourceList.add(resourceArchive);
logger.info("{}| enlist remote resource: {}.",
ByteUtils.byteArrayToString(globalXid.getGlobalTransactionId()), identifier);
}
return true;
}
public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException {
