How to do Bean Validation for REST services of server plugin

Hi Experts,

I have tried this example but this is not working for REST services of JIRA serve plugin

https://www.logicbig.com/tutorials/java-ee-tutorial/jax-rs/entity-validation.html

Any sample code would be helpful.