replacing dependency on @Autowired with @Inject for JAX-RS