code: public int getMessageLength(){
  		if(this.identifierRegex == null){
  			return 1;
  		}
  		try {
  			return this.identifierRegex.getBytes("UTF-16BE").length + 1;
  		} catch (UnsupportedEncodingException e) {
  			log.error("Unable to decode UTF-16BE String: {}", e);
  			return 1;
  		}
  	}
docs: Returns the length of this message when encoded according to the Client-World Model protocol.
  @return the length, in bytes, of the encoded form of this message.