if (isRoundRobin()) {
log.debug("Failover is round robin enabled and therefore starting from the first endpoint");
index.set(0);
counter.set(0);
} else {
<BUG>log.debug("Braking out of failover as we reach the end of endpoints to use for failover");
callback.done(doneSync);
return;</BUG>
}
}

if (isRoundRobin()) {
log.debug("Failover is round robin enabled and therefore starting from the first endpoint");
index.set(0);
counter.set(0);
} else {
log.debug("Braking out of failover as we reach the end of endpoints to use for failover");
break;
}
}
