docs: public int getMessageLength() {
      // Message ID
      int length = 1;
  
      if (this.weights != null) {
        for (String origin : this.weights.keySet()) {
          // String prefix, weight
          length += 8;
          try {
            length += origin.getBytes("UTF-16BE").length;
          } catch (UnsupportedEncodingException uee) {
            log.error("Unable to encode to UTF-16BE.");
          }
        }
      }
  
      return length;
    }