public void write(String key,byte[] newValue) throws Exception {
  Map<String,byte[]> entry=new HashMap<>();
  entry.put(key,newValue);
  write(entry);
}

public void write ( String key , byte [ ] newValue ) throws Exception { Map < String , byte [ ] > entry = new HashMap < > ( ) ; entry . put ( key , newValue ) ; write ( entry ) ; }
performs the best effort of updating zk node { basepath } / { key } to the provided value . the semantics provided are as follows : the value is written regardless of the current value associated with the key . if the key doesn ' t exist and we lose the race to create the key , we will throw an exception .
