Service locator can build only QObject based instances.