Another try for jax-rs implementation