private Set < ConstraintViolation < T > > validateRequest ( final T request ) { final ValidatorFactory factory = Validation . buildDefaultValidatorFactory ( ) ; return factory . getValidator ( ) . validate ( request ) ; }
Validate request .