}
while(ledgerRangeIterator.hasNext()) {
LedgerRange lRange = ledgerRangeIterator.next();
Map<Long, Boolean> subBkActiveLedgers = null;
Long start = lRange.start();
Long end = lRange.end();
if (end != LedgerRange.NOLIMIT) {
subBkActiveLedgers = bkActiveLedgersSnapshot.subMap(start,
true, end, true);
} else {
if (start != LedgerRange.NOLIMIT) {