else if ("avro".equals(type)){
String msgClsString = config.get("kafka.msg.avro.class");
String dataMapperClassString = config.get("kafka.msg.avro.datamapper");
Class cls = Class.forName(msgClsString);
Class dataMapperClass = Class.forName(dataMapperClassString);
DataSourceFilter dataMapper = (DataSourceFilter)dataMapperClass.newInstance();
dataFilter = new AvroDataSourceFilter(cls, dataMapper);
}
else{
throw new IllegalArgumentException("invalid msg type: "+type);
}