try {
Class<HeaderStateReader> cl = (Class<HeaderStateReader>) Class.forName(headerStateReaderClassName);
Constructor<HeaderStateReader> constructor = cl.getConstructor();
return constructor.newInstance();
} catch (Throwable e) { // ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException
<BUG>tsLogger.i18NLogger.info_osb_HeaderStateCtorFail(e);
</BUG>
return new HeaderStateReader();
}
}

try {
Class<HeaderStateReader> cl = (Class<HeaderStateReader>) Class.forName(headerStateReaderClassName);
Constructor<HeaderStateReader> constructor = cl.getConstructor();
return constructor.newInstance();
} catch (Throwable e) { // ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException
tsLogger.i18NLogger.info_osb_HeaderStateCtorInfo(e.getMessage());
return new HeaderStateReader();
}
}
