ClientProtos.WriteResultProto writeResultProto = result.getWriteResult();
OperationStatus status = new OperationStatus(
OperationStatusCode.valueOf(writeResultProto.getCode().name()),
writeResultProto.getExceptionMsg(),
writeResultProto.getExceptionClassName());
WriteResult writeResult = new WriteResult(status);
results.add(writeResult);
}
}
return results;
}