docs: public int getMessageLength() {
      // Message type, Id length
      int length = 1 + 4;
  
      if (this.identifier != null) {
        try {
          length += this.identifier.getBytes("UTF-16BE").length;
        } catch (UnsupportedEncodingException e) {
          log.error("Unable to encode to UTF-16BE.");
        }
      }
  
      // Attribute name length
      length += 4;
  
      if (this.attributeName != null) {
        try {
          length += this.attributeName.getBytes("UTF-16BE").length;
        } catch (UnsupportedEncodingException e) {
          log.error("Unable to encode to UTF-16BE.");
        }
      }
  
      if (this.origin != null) {
        try {
          length += this.origin.getBytes("UTF-16BE").length;
        } catch (UnsupportedEncodingException uee) {
          log.error("Unable to encode to UTF-16BE.");
        }
      }
  
      return length;
    }