public static void makeSurePersistentPathExists(final ZkClient client, final String path) throws Exception {
        if (!client.exists(path)) {
            try {
                client.createPersistent(path, true);
            }
            catch (final ZkNodeExistsException e) {
            }
            catch (final Exception e) {
                throw e;
            }

        }
    }
make sure a persiste.nt path exists in ZK. Create the path if not exist.
metamorphosis-commons/src/main/java/com/taobao/metamorphosis/utils/ZkUtils.java