code: protected ValidationMessage getValidationMessage(ValidationResults resultsModel) {
  		ValidationMessage validationMessage = null;
          for (Iterator i = resultsModel.getMessages().iterator(); i.hasNext();) {
              ValidationMessage tmpMessage = (ValidationMessage) i.next();
              if (validationMessage == null
                      || (validationMessage.getSeverity().compareTo(tmpMessage.getSeverity()) < 0)
                      || ((validationMessage.getTimestamp() < tmpMessage.getTimestamp()) && (validationMessage
                              .getSeverity() == tmpMessage.getSeverity()))) {
                  validationMessage = tmpMessage;
              }
          }
          return validationMessage;
  	}
docs: <p>
  Get the message that should be reported.
  </p>
  
  Searching takes following rules into account:
  <ul>
  <li>Severity of the selected message is the most severe one (INFO <
  WARNING < ERROR).</li>
  <li>Timestamp of the selected message is the most recent one of the
  result of the previous rule.</li>
  </ul>
  
  Any custom Severities will be placed in order according to their given
  magnitude.
  
  @param resultsModel Search this model to find the message.
  @return the message to display on the Messagable.