code: private Set<ConstraintViolation<T>> validateRequest(final T request) {
          final ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
          return factory.getValidator().validate( request );
  	}
docs: Validate request.
  
  @param request
  the request
  @return the sets the