Upgrade to JAX-RS 2 API.