public void deploy(ApplicationPackage applicationPackage, Map<Version, FileRegistry> fileRegistryMap, 
                       AllocatedHosts allocatedHosts) throws IOException {
        client.initialize();
        client.writeApplicationPackage(applicationPackage);
        client.write(fileRegistryMap);
        client.write(allocatedHosts);
    }
Deploys an application package to zookeeper

@param applicationPackage the application package to persist.
@param fileRegistryMap the file registries to persist.
@param allocatedHosts the allocated hosts to persist.
@throws IOException if deploying fails
configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ZooKeeperDeployer.java