List<Row> rows = new ArrayList<Row>(command.max_keys);
for (AbstractBounds range : getRangeIterator(ranges, command.range.left))
{
List<InetAddress> liveEndpoints = StorageService.instance.getLiveNaturalEndpoints(command.keyspace, range.right);
if (liveEndpoints.size() < responseCount)
throw new UnavailableException();
DatabaseDescriptor.getEndPointSnitch(command.keyspace).sortByProximity(FBUtilities.getLocalAddress(), liveEndpoints);
List<InetAddress> endpoints = liveEndpoints.subList(0, responseCount);
RangeSliceCommand c2 = new RangeSliceCommand(command.keyspace, command.column_family, command.super_column, command.predicate, range, command.max_keys);
Message message = c2.getMessage();