code: protected void setupXidExp(StringBuilder sb, RomanticTransaction tx, ConnectionWrapper wrapper) {
          sb.append(", ");
          final Xid xid = tx.getXid();
          final byte[] globalId = xid.getGlobalTransactionId();
          final byte[] branchId = xid.getBranchQualifier();
          if (globalId != null) {
              sb.append(new String(globalId).trim());
          } else { // no way, just in case
              sb.append("*no globalId");
          }
          if (branchId != null && branchId.length > 0) {
              final String branchStr = new String(branchId).trim();
              if (!branchStr.isEmpty()) { // might be only spaces
                  sb.append("-" + branchStr);
              }
          }
          final Object processId = extractDbmsNativeProcessId(tx, wrapper);
          if (processId != null) {
              sb.append("(").append(processId).append(")");
          }
      }
docs: =====