docs: public BEValue toBEValue() throws UnsupportedEncodingException {
      Map<String, BEValue> peer = new HashMap<String, BEValue>();
      if (this.hasPeerId()) {
        peer.put("peer id", new BEValue(this.getPeerIdArray()));
      }
      peer.put("ip", new BEValue(this.getIp(), Constants.BYTE_ENCODING));
      peer.put("port", new BEValue(this.getPort()));
      return new BEValue(peer);
    }