code: public static GenericRecord slowDeserializeGenericRecord(byte[] serializedRecord, Schema schema) throws IOException {
      Decoder decoder = DecoderFactory.get().binaryDecoder(serializedRecord, null);
      GenericDatumReader<GenericRecord> reader = new GenericDatumReader<>(schema);
      return reader.read(null, decoder);
    }
docs: Deserialize a {@link GenericRecord} from a byte array. This method is not intended for high performance.