for (Token token : tokens_)
</BUG>
{
tokenToEndPointMap.remove(token);
}
<BUG>Set<Token> oldTokens = new HashSet<Token>( tokenToEndPointMap.keySet() );
</BUG>
Range[] oldRanges = StorageService.instance().getAllRanges(oldTokens);
logger_.debug("Total number of old ranges " + oldRanges.length);
Map<Range, List<Range>> splitRanges = LeaveJoinProtocolHelper.getRangeSplitRangeMapping(oldRanges, tokens_);

public void run()
{
try
{
logger_.debug("Beginning bootstrap process for " + targets_ + " ...");
Map<BigInteger, EndPoint> tokenToEndPointMap = tokenMetadata_.cloneTokenEndPointMap();
for ( BigInteger token : tokens_ )
{
tokenToEndPointMap.remove(token);
}
Set<BigInteger> oldTokens = new HashSet<BigInteger>( tokenToEndPointMap.keySet() );
Range[] oldRanges = StorageService.instance().getAllRanges(oldTokens);
logger_.debug("Total number of old ranges " + oldRanges.length);
Map<Range, List<Range>> splitRanges = LeaveJoinProtocolHelper.getRangeSplitRangeMapping(oldRanges, tokens_);
