Added java template

Added java template, using jersey-client, a standard JAX-RS client implementation.