code: public byte[] toByteArray() throws IOException {
          ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
          ObjectOutputStream out = new ObjectOutputStream(byteOut);
          out.writeObject(this);
          return byteOut.toByteArray();
      }
docs: <p>
  returns byte sequence of myself.
  </p>
  
  @return
  @throws IOException