Synchronization synchronization = it.next();
boolean handover = true;
if (synchronization instanceof SynchronizationVetoable) {
SynchronizationVetoable veto = (SynchronizationVetoable) synchronization;
handover = veto.allowHandover();
}
if (handover) {
log.trace("Handover synchronization {} to: {}", synchronization, target);
target.addOnCompletion(synchronization);