private void generateXml() throws Exception {
            try (PrintWriter xml = new PrintWriter(Files.newOutputStream(path.resolve("services.xml")))) {
                xml.println("<?xml version=\"1.0\" encoding=\"utf-8\" ?>");
                for (Map.Entry<String, Container> entry : containers.entrySet()) {
                    entry.getValue().build(xml, entry.getKey(), (networking == Networking.enable ? getRandomPort() : -1));
                }
            }
        }
@param networking enable or disable networking (disabled by default)
@return builder
application/src/main/java/com/yahoo/application/Application.java