Update Java example to use more modern Jersey API.