}
private void mergeWithConcurrencyCheck(
NodeBuilder builder, final String checkpoint, final long lease)
throws CommitFailedException {
CommitHook concurrentUpdateCheck = new CommitHook() {
@Override @Nonnull
public NodeState processCommit(
NodeState before, NodeState after, CommitInfo info)
throws CommitFailedException {
// check for concurrent updates by this async task