public ApplicationBuilder servicesXml(String servicesXml) throws IOException {
        ensureNotAlreadyBuild();

        String content = servicesXml.startsWith("<?xml") ?
                servicesXml :
                "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" + '\n' + servicesXml;

        createFile(applicationDir.resolve("services.xml"), content);
        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