code: public byte[] serialize()
      {
          if (tc.isEntryEnabled()) Tr.entry(tc, "serialize", this);
  
          byte[] b = null;
          try
          {
              final ByteArrayOutputStream bos = new ByteArrayOutputStream();
              final ObjectOutputStream out = new ObjectOutputStream(bos);
              out.writeObject(this);
              out.flush();
              out.close();
              b = bos.toByteArray();
          }
          catch (IOException e)
          {
              FFDCFilter.processException(e, "com.ibm.ws.Transaction.JTA.XARecoveryWrapper.serialize", "162");
              if (tc.isEventEnabled()) Tr.event(tc, "Unable to serialize an object to the byte stream", e);
              b = null;
          }
  
          if (tc.isEntryEnabled()) Tr.exit(tc, "serialize", b);
          return b;
      }
docs: /* (non-Javadoc)
  @see com.ibm.ws.Transaction.JTA.RecoveryWrapper#serialize()