public Path write(final FileSystem fs, final Path p) throws IOException {
    FSDataOutputStream out = fs.create(p, false);
    try {
      out.write(toByteArray());
    } finally {
      out.close();
    }
    return p;
  }
@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