throws IOException {
DatumReader<AvroFlumeConfigDataMap> reader = new SpecificDatumReader<AvroFlumeConfigDataMap>();
reader.setSchema(AvroFlumeConfigDataMap.SCHEMA$);
DataFileStream<AvroFlumeConfigDataMap> fileStream = new DataFileStream<AvroFlumeConfigDataMap>(
new ByteArrayInputStream(cfg), reader);
AvroFlumeConfigDataMap cfgmap = fileStream.next();
fileStream.close();
Map<String, FlumeConfigData> ret = new HashMap<String, FlumeConfigData>();
for (Entry<CharSequence, AvroFlumeConfigData> e : cfgmap.configs.entrySet()) {
ret.put(e.getKey().toString(), MasterClientServerAvro.configFromAvro(e
.getValue()));