add serviceLocator getter example