}
T obj = objClass.newInstance();
Field[] fields = objClass.getDeclaredFields();
for(Field field: fields) {
Decoder decoder = lookupDecoder(field);
BeanUtils.setProperty(obj, field.getName(), decoder.decode(data));
}
return obj;
}
private Decoder lookupDecoder(Field field) {