Implementing the JAX-RS resource