code: public void forceSet(byte[] newValue) throws Exception
      {
          try
          {
              client.setData().forPath(path, newValue);
          }
          catch ( KeeperException.NoNodeException dummy )
          {
              try
              {
                  client.create().creatingParentContainersIfNeeded().forPath(path, newValue);
              }
              catch ( KeeperException.NodeExistsException dummy2 )
              {
                  client.setData().forPath(path, newValue);
              }
          }
      }
docs: Forcibly sets the value any guarantees of atomicity.
  
  @param newValue the new value
  @throws Exception ZooKeeper errors