bucketsWithSize.add(getBucketWithSize(b));
JSONObject jsonObject = JsonUtils.writeKeyValueAsJson(
JsonObjectNames.BUCKET_COLLECTION, bucketsWithSize);
RequestOnSearchPeers requestOnSearchPeers = RequestOnSearchPeers.createGet(
ShuttlConstants.ENDPOINT_LIST_BUCKETS, index, from, to);
SearchPeerResponse peerResponse = requestOnSearchPeers.execute();
List<JSONObject> jsons = peerResponse.jsons;
jsons.add(jsonObject);
return RestUtil.mergeBucketCollectionsAndAddTotalSize(jsons)
.put(JsonObjectNames.EXCEPTIONS, peerResponse.exceptions).toString();