code: public void addMessage(final Message message, final boolean encodeText) {
  		switch (message.getType()) {
  			case Message.SUCCESS_MESSAGE:
  				addMessage(successMessages, message, encodeText);
  				break;
  
  			case Message.INFO_MESSAGE:
  				addMessage(infoMessages, message, encodeText);
  				break;
  
  			case Message.WARNING_MESSAGE:
  				addMessage(warningMessages, message, encodeText);
  				break;
  
  			case Message.ERROR_MESSAGE:
  				addMessage(errorMessages, message, encodeText);
  				break;
  
  			default:
  				LOG.warn("Unknown message type: " + message.getType());
  		}
  	}
docs: Adds a message.
  <p>
  When setting <code>encodeText</code> to <code>false</code>, it then becomes the responsibility of the application
  to ensure that the text does not contain any characters which need to be escaped.
  </p>
  <p>
  <b>WARNING:</b> If you are using WMessageBox to display "user entered" or untrusted data, use of this method with
  <code>encodeText</code> set to <code>false</code> may result in security issues.
  </p>
  
  @param message the message to add
  @param encodeText true to encode the message, false to leave it unencoded.