* an {@link HttpResponse} from an index query
* @return an {@link IndexResponse}
*/
private IndexResponse makeIndexResponse(HttpResponse r) {
try {
return new IndexResponse(r);
} catch (JSONException e) {
try {
return new IndexResponse(helper.toss(new RiakResponseRuntimeException(r, e)));
} catch (Exception e1) {
throw new IllegalStateException(
"helper.toss() returns a unsuccessful result, so BucketResponse shouldn't try to parse it or throw");
}
}