Can this be replaced with [`SpecificData#getClass(Schema)`](https://avro.apache.org/docs/1.7.5/api/java/org/apache/avro/specific/SpecificData.html#getClass(org.apache.avro.Schema))?