private static QueryProfileRegistry createQueryProfileRegistryFromDirectory(String dir) {
        File queryProfilesDir = new File(dir, "query-profiles");
        if ( ! queryProfilesDir.exists()) return new QueryProfileRegistry();
        return new QueryProfileXMLReader().read(queryProfilesDir.toString());
    }
Convenience factory method to create a SearchBuilder from multiple SD files.
config-model/src/main/java/com/yahoo/schema/ApplicationBuilder.java