Implementation of the service locator pattern