Added query for ServiceFactory.