Very simple implementation of service locator