code: public void addMessage(final boolean encode, final String msg, final Serializable... args) {
  		MessageModel model = getOrCreateComponentModel();
  		model.messages.add(new Duplet<>(I18nUtilities.asMessage(msg, args), encode));
  		// Potential for leaking memory here
  		MemoryUtil.checkSize(model.messages.size(), this.getClass().getSimpleName());
  	}
docs: Adds a message to the message box.
  
  @param encode true to encode the message text, false to leave it unencoded.
  @param msg the text of the message to add, using {@link MessageFormat} syntax.
  @param args optional arguments for the message format string.