code: protected void doValidate(Object bean, Consumer<ExceptionMessageBuilder> locationBuilder) {
          if (bean == null) {
              throw new IllegalStateException("The argument 'bean' should not be null.");
          }
          if (mightBeValidatable(bean)) {
              final ActionValidator<UserMessages> validator = createActionValidator();
              try {
                  executeValidator(validator, bean);
              } catch (ValidationErrorException e) {
                  handleResponseBeanValidationErrorException(bean, locationBuilder, e.getMessages(), e);
              } catch (ClientErrorByValidatorException e) {
                  handleResponseBeanValidationErrorException(bean, locationBuilder, e.getMessages(), e);
              }
          }
      }
docs: ========