* @param entry a SchemaEntry.
* @return an equivalent Avro SchemaTableEntry.
*/
public static SchemaTableEntry toAvroEntry(final SchemaEntry entry) {
return SchemaTableEntry.newBuilder().setId(entry.getId())
.setHash(new MD5Hash(entry.getHash().getBytes()))
.setAvroSchema(entry.getSchema().toString()).build();
}