} else if (updateResult.failure()) {
Throwable t = updateResult.error;
if (updateResult.retry) {
if (updateAttemptsCount >= updateRequest.retryOnConflict()) {
responses[requestIndex] = new BulkItemResponse(item.id(), "update",
<BUG>new BulkItemResponse.Failure(updateRequest.index(), updateRequest.type(), updateRequest.id(), ExceptionsHelper.detailedMessage(t)));
;</BUG>
request.items()[requestIndex] = null; // do not send to replicas
}
} else {

} else if (updateResult.failure()) {
Throwable t = updateResult.error;
if (updateResult.retry) {
if (updateAttemptsCount >= updateRequest.retryOnConflict()) {
responses[requestIndex] = new BulkItemResponse(item.id(), "update",
new BulkItemResponse.Failure(updateRequest.index(), updateRequest.type(), updateRequest.id(), t));
;
request.items()[requestIndex] = null; // do not send to replicas
}
} else {
