* @return A RiakObject populated from the map.
*/
@SuppressWarnings({ "rawtypes", "unchecked" }) private static IRiakObject mapToRiakObject(Map data) {
RiakObjectBuilder b = RiakObjectBuilder.newBuilder((String) data.get("bucket"), (String) data.get("key"));
String vclock = (String) data.get("vclock");
b.withVClock(CharsetUtils.utf8StringToBytes(vclock));
final List values = (List) data.get("values");
// TODO figure out what to do about multiple values here,
// I say take the first for now (that is what the link walk interface
// does)