code: public final ByteArrayOutputStream encode() throws IOException
      {
          final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
  
          buffer.write(type);
          buffer.write(clientId);
          buffer.write(clientDestId);
          encode(buffer);
  
          return buffer;
      }
docs: Encode the message.
  
  @return The encoded message data.
  @throws IOException Error on writing.