code: public MethodBinding getValidator() {
          MethodBinding result = null;
  
          Validator[] curValidators = getValidators();
          // go through our lisetners list and find the one and only
          // MethodBindingValidator instance, if present.
          if (null != curValidators) {
              for (int i = 0; i < curValidators.length; i++) {
                  // We are guaranteed to have at most one instance of
                  // MethodBindingValidator in the curValidators list.
                  if (MethodBindingValidator.class ==
                       curValidators[i].getClass()) {
                      result = ((MethodBindingValidator) curValidators[i]).
                           getWrapped();
                      break;
                  }
              }
          }
          return result;
  
      }
docs: <p>Return a <code>MethodBinding</code> pointing at a
  method that will be called during <em>Process Validations</em>
  phase of the request processing lifecycle, to validate the current
  value of this component.</p>
  
  @deprecated {@link #getValidators} should be used instead.