JAX-RS security code