command pattern web service jax rs restful webservice using jax rs 2 0