replacing addDependency(ServiceContainer,...) with addDependency(ServiceRegistry,...)