Refine jax-rs resource classes