code: private ValidatorFactory getValidatorFactory() {
          if (!ValidationMode.NONE.equals(validationMode)) {
              try {
                  return Validation.buildDefaultValidatorFactory();
              } catch (ValidationException e) {
                  LOGGER.debug("No JSR 303 Bean Validation provider available.", e);
              }
          }
          return null;
      }
docs: Return the {@link javax.validation.ValidatorFactory}.
  
  @return The {@link javax.validation.ValidatorFactory}.