public ApplicationBuilder queryProfile(String name, String queryProfile) throws IOException {
        Path path = nestedResource(ApplicationPackage.QUERY_PROFILES_DIR, name, ".xml");
        createFile(path, queryProfile);
        return this;
    }
Builds an application package on disk and returns a path to the result.

@author Tony Vaagenes
application/src/main/java/com/yahoo/application/ApplicationBuilder.java