I generated the api using raml-to-jaxrs-plugin and created JAXRSClientFactoryBean object to call it.
var clientFactoryBean = new JAXRSClientFactoryBean(); objectM