Rewrite zookeeper client code with curator