Added functionality to get a service with modified dependencies