JAX-RS practice