public static Reference convert(final FSProtos.Reference r) {
    Reference result = new Reference();
    result.splitkey = r.getSplitkey().toByteArray();
    result.region = r.getRange() == FSProtos.Reference.Range.TOP ? Range.top : Range.bottom;
    return result;
  }
@deprecated Writables are going away. Use the pb serialization methods instead. Remove in a
            release after 0.96 goes out. This is here only to migrate old Reference files
            written with Writables before 0.96.
hbase-server/src/main/java/org/apache/hadoop/hbase/io/Reference.java