I have a Jersey-based application and I want to add validation to input.

```
@POST
@Produces(APPLICATION_JSON) @Consumes(APPLICATION_JSON)
public SomeResponce myMethod(@Valid MyBean myBean)

```

Problem is that my beans are generated by protostuff and I cant add validation annotations. I've found the way how to validate beans without annotation/xml:
<http://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#section-programmatic-api>

But Im very unfamiliar with Jersey and cant find in docs how to add this custom validators to Jersey without use of annotations in bean. Is any way to do it? 

Jersey version - 2.8