code: private void executeValidate(FacesContext context) {
          try {
              validate(context);
          } catch (RuntimeException e) {
              context.renderResponse();
              throw e;
          }
  
          if (!isValid()) {
              context.validationFailed();
              context.renderResponse();
          }
      }
docs: Executes validation logic.