Updated injectService method to protected