code: public List<String> getMessages() {
  		MessageModel model = getComponentModel();
  
  		List<String> messages = new ArrayList<>(model.messages.size());
  
  		for (Duplet<Serializable, Boolean> message : model.messages) {
  			String text = I18nUtilities.format(null, message.getFirst());
  			// If we are outputting unencoded content it must be XML valid.
  			boolean encode = message.getSecond();
  			messages.add(encode ? WebUtilities.encode(text) : HtmlToXMLUtil.unescapeToXML(text));
  		}
  
  		return Collections.unmodifiableList(messages);
  	}
docs: Retrieves the list of messages.
  
  @return the messages for the current context.