@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(name); out.writeVLong(length); out.writeString(checksum); out.writeString(writtenBy.toString()); out.writeBytesRef(hash); }