public QueryProfiles build(ApplicationPackage applicationPackage, DeployLogger logger) {
        List<NamedReader> queryProfileTypeFiles = null;
        List<NamedReader> queryProfileFiles = null;
        try {
            queryProfileTypeFiles = applicationPackage.getQueryProfileTypeFiles();
            queryProfileFiles = applicationPackage.getQueryProfileFiles();
            return new QueryProfiles(new QueryProfileXMLReader().read(queryProfileTypeFiles, queryProfileFiles),
                                     logger);
        }
        finally {
            NamedReader.closeAll(queryProfileTypeFiles);
            NamedReader.closeAll(queryProfileFiles);
        }
    }
Build the set of query profiles for an application package
config-model/src/main/java/com/yahoo/vespa/model/container/search/QueryProfilesBuilder.java