code: public FacesMessage getFacesMessage() {
          FacesMessage result = this.message;
          if (null == result && null != this.messages && !this.messages.isEmpty()) {
              result = messages.iterator().next();
          }
          return result;
      }
docs: <p class="changed_modified_2_0">Returns the <code>FacesMessage</code>
  associated with
  the exception.  If this instance
  was created with a constructor that takes
  <code>Collection&lt;FacesMessage&gt;</code>, this method returns the first
  message in the <code>Collection</code></p>