Use ServiceLocator.