JAX-RS Solution