code: public void putBytes(ByteBuffer writeBuffer) {
  
          if (writeBuffer.remaining() < CONNECTION_ID_LENGTH) {
              throw new IllegalArgumentException("Could not add ConnectionHandle to byte buffer: not enough space.");
          }
  
          writeBuffer.putLong(this.connID);
          writeBuffer.putInt(this.seqNum);
          writeBuffer.put(this.connHandleCreatorId);
          writeBuffer.put(this.myFlags);
          writeBuffer.put(this.myType);
          writeBuffer.put((byte) 0xFF); // place holder - empty flag
      }
docs: Returns unique connection information as a byte array.
  
  @param writeBuffer
  ByteBuffer to write ConnectionHandle bytes into.