Adapted the REST client to jax-rs 1.1 (using jersey-client 1.18)