use jax rs instead of wicket for rest api