first impl with jax-rs