Implemented constructor for ServiceLocator