docs: public byte[] toLogData() throws javax.transaction.SystemException
      {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "toLogData", this);
  
          byte[] logData = null;
          final ByteArrayOutputStream baos = new ByteArrayOutputStream();
  
          try {
              final ObjectOutputStream oos = new ObjectOutputStream(baos);
              oos.writeObject(this);
              logData = baos.toByteArray();
          } catch (Exception e) {
              FFDCFilter.processException(e, "com.ibm.ws.Transaction.wstx.WSATRecoveryCoordinator.toLogData", "118", this);
              if (tc.isEventEnabled())
                  Tr.event(tc, "Exception caught in toLogData " + e);
  
              final Throwable se = new SystemException().initCause(e);
              if (tc.isEntryEnabled())
                  Tr.exit(tc, "toLogData", se);
              throw (SystemException) se;
          }
  
          if (tc.isEntryEnabled())
              Tr.exit(tc, "toLogData", logData);
          return logData;
      }