if (isDelete) {
if (log.isDebugEnabled()) {
log.debug(format("Deleting znode '%s', waiting for confirmation", context.node));
}
OperationResult result = synchronouslyDelete(context);
if (configuration.isListChildren()) {
result = listChildren(context);
}
updateExchangeWithResult(context, result);
} else {
if (log.isDebugEnabled()) {
log.debug(format("Storing data to znode '%s', waiting for confirmation", context.node));
}
OperationResult result = synchronouslySetData(context);
if (configuration.isListChildren()) {
result = listChildren(context);
}
updateExchangeWithResult(context, result);
}