Added java template

Added java template, using jersey-client, a standard JAX-RS client implementation.
You're right. I've made a new pr fixing this and other errors.