Added method to get embedded types from Avro.
Removed the parsing code and rely on avro.