Using restTemplate instead of httpAgentOsgiService, since osgi references cannot be transferred across application contexts