private void writeSomeOf(ApplicationPackage app) throws IOException {
            // TODO: We should have a way of doing this which doesn't require repeating all the content
            writeFile(app.getFile(Path.fromString(SERVICES)), getZooKeeperAppPath(USERAPP_ZK_SUBPATH));
            writeFile(app.getFile(Path.fromString(HOSTS)), getZooKeeperAppPath(USERAPP_ZK_SUBPATH));
            writeFile(app.getFile(Path.fromString(DEPLOYMENT_FILE.getName())), getZooKeeperAppPath(USERAPP_ZK_SUBPATH));
            writeFile(app.getFile(Path.fromString(VALIDATION_OVERRIDES.getName())), getZooKeeperAppPath(USERAPP_ZK_SUBPATH));
            writeDir(app.getFile(RULES_DIR),
                     getZooKeeperAppPath(USERAPP_ZK_SUBPATH).append(RULES_DIR),
                     (path) -> path.getName().endsWith(ApplicationPackage.RULES_NAME_SUFFIX));
            writeDir(app.getFile(QUERY_PROFILES_DIR),
                     getZooKeeperAppPath(USERAPP_ZK_SUBPATH).append(QUERY_PROFILES_DIR),
                     xmlFilter);
            writeDir(app.getFile(PAGE_TEMPLATES_DIR),
                     getZooKeeperAppPath(USERAPP_ZK_SUBPATH).append(PAGE_TEMPLATES_DIR),
                     xmlFilter);
            writeDir(app.getFile(Path.fromString(SEARCHCHAINS_DIR)),
                     getZooKeeperAppPath(USERAPP_ZK_SUBPATH).append(SEARCHCHAINS_DIR),
                     xmlFilter);
            writeDir(app.getFile(Path.fromString(DOCPROCCHAINS_DIR)),
                     getZooKeeperAppPath(USERAPP_ZK_SUBPATH).append(DOCPROCCHAINS_DIR),
                     xmlFilter);
            writeDir(app.getFile(Path.fromString(ROUTINGTABLES_DIR)),
                     getZooKeeperAppPath(USERAPP_ZK_SUBPATH).append(ROUTINGTABLES_DIR),
                     xmlFilter);
            writeDir(app.getFile(MODELS_GENERATED_REPLICATED_DIR),
                     getZooKeeperAppPath(USERAPP_ZK_SUBPATH).append(MODELS_GENERATED_REPLICATED_DIR));
            writeDir(app.getFile(SECURITY_DIR),
                     getZooKeeperAppPath(USERAPP_ZK_SUBPATH).append(SECURITY_DIR));
        }
Writes some application package files into ZK - see write(app).

@param app the application package to use as input.
@throws IOException if not able to write to Zookeeper
configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ZooKeeperDeployer.java