if (r == null) {
return NO_RIAK_OBJECTS;
}
RpbPutResp resp = RPB.RpbPutResp.parseFrom(r);
RiakObject[] res = new RiakObject[resp.getContentsCount()];
ByteString vclock = resp.getVclock();
for (int i = 0; i < res.length; i++) {
res[i] = new RiakObject(vclock, value.getBucketBS(), value
.getKeyBS(), resp.getContents(i));
}
return res;
} finally {
release(c);