Java EE JAX RS template