// private void pathInBackground(final String path, final byte[] data, final String givenPath) {
// final AtomicBoolean firstTime = new AtomicBoolean(true);
// OperationAndData<PathAndBytes> operationAndData = new OperationAndData<PathAndBytes>(this, new PathAndBytes(path, data), backgrounding.getCallback(),
// new OperationAndData.ErrorCallback<PathAndBytes>() {
// public void retriesExhausted(OperationAndData<PathAndBytes> operationAndData) {
// if (protectedMode.doProtected()) {
// // all retries have failed, findProtectedNodeInForeground(..) included, schedule a clean up
// new FindAndDeleteProtectedNodeInBackground(client, ZKPaths.getPathAndNode(path).getPath(), protectedMode.protectedId()).execute();
// // assign a new id if this builder is used again later