It turns out the ServiceLocator is needed.