private BeanValidationProvider validationProvider;
@Override
protected void initializeProvider(InterceptorProvider interceptorProvider, Bus bus) {
BeanValidationInInterceptor in = new JAXRSBeanValidationInInterceptor();
BeanValidationOutInterceptor out = new JAXRSBeanValidationOutInterceptor();
if (validationProvider != null) {
in.setProvider(validationProvider);
out.setProvider(validationProvider);
}
interceptorProvider.getInInterceptors().add(in);
interceptorProvider.getOutInterceptors().add(out);
}