} else if (shardResponse instanceof BroadcastShardOperationFailedException) {
failedShards++;
if (shardFailures == null) {
shardFailures = newArrayList();
}
shardFailures.add(new DefaultShardOperationFailedException((BroadcastShardOperationFailedException) shardResponse));
} else {
successfulShards++;
if (shardResponse instanceof ShardSkywalkerResponse) {
ShardSkywalkerResponse shardResp = (ShardSkywalkerResponse) shardResponse;
String index = shardResp.getIndex();