return new PreferenceFactory(PreferenceFactory.class);
}
private static ReadOnlyProperties load() {
try {
ReadOnlyPropertiesFactory factory = ReadOnlyPropertiesFactory.newInstance();
return new SystemPropertiesDecorator(factory.load("/" + RESOURCE_NAME));
} catch (IOException ex) {
FatalConfigurationError.throwError(
FatalConfigurationError.APPLICATION_CONFIGURATION,
ApplicationConfiguration.class,
ex,