code: public void setValue(byte[] newValue) throws Exception
      {
          Preconditions.checkState(state.get() == State.STARTED, "not started");
  
          Stat result = client.setData().forPath(path, newValue);
          updateValue(result.getVersion(), Arrays.copyOf(newValue, newValue.length));
      }
docs: Change the shared value value irrespective of its previous state
  
  @param newValue new value
  @throws Exception ZK errors, interruptions, etc.