InputStream is = this.getClass().getResourceAsStream(resourceName);
if (is == null) {
throw new FileNotFoundException("Unable to find file " + MESSAGES_FILE);
}
SettingsLoader settingsLoader = SettingsLoaderFactory.loaderFromResource(resourceName);
return settingsLoader.load(Streams.copyToString(new InputStreamReader(is, "UTF-8")));
}
public static String getMessage(String key) {
if (MESSAGES_PROVIDER.messages != null) {
String message = MESSAGES_PROVIDER.messages.get(key);