code: public static <T> T readAvroEntity(byte[] bytes, DatumReader<T> reader) {
      Decoder decoder = new DecoderFactory().binaryDecoder(bytes, null);
      return AvroUtils.<T> readAvroEntity(decoder, reader);
    }
docs: Given a byte array and a DatumReader, decode an avro entity from the byte
  array. Decodes using the avro BinaryDecoder. Return the constructed entity.
  
  @param bytes
  The byte array to decode the entity from.
  @param reader
  The DatumReader that will decode the byte array.
  @return The Avro entity.