private static PreferenceFactory createPreferenceFactory() {
String className = props.getString("Preference.Factory", null);
if (className != null) {
try {
Class<?> clazz = Class.forName(className);
return new PreferenceFactory(clazz);
} catch (ClassNotFoundException ex) {
ErrorLog.log(ApplicationConfiguration.class, "Invalid configuration: unknown preference factory class",
ex);
}
}
return new PreferenceFactory(PreferenceFactory.class);
}