Something like this? https://github.com/garcia-jj/vraptor4/commit/34bf9094269d6fb63e1c23d42cd8d9e033740566