return (Class<? extends GenericData>) conf.getClass(
CONF_DATA_MODEL, ReflectData.class, GenericData.class);
}
private static GenericData newDataModelInstance(Class<? extends GenericData> modelClass, Configuration conf) {
GenericData dataModel;
try {
Constructor<? extends GenericData> ctor = modelClass.getDeclaredConstructor(ClassLoader.class);
ctor.setAccessible(true);
dataModel = ctor.newInstance(conf.getClassLoader());
} catch (Exception e) {