code: public void removeMessages(final int index) {
  		MessageModel model = getOrCreateComponentModel();
  
  		if (model.messages != null) {
  			model.messages.remove(index);
  		}
  	}
docs: Removes a message from the message box.
  
  @param index the index of the mssage to remove.