refactored the message encoding class hierarchy in order to encapsulate the schema variable name for Avro messages
refactored the Avro message retrieval code