propFile += "_" + locale.getAsString();
}
propFile += ".properties";
InputStream str = null;
ClassLoader classLoader = getClass().getClassLoader();
LocalizedProperties props = new LocalizedProperties();
try {
str = classLoader.getResourceAsStream(propFile);
if (str != null) {
props.load(str, "UTF-8");
return props;
}
} catch (UnsupportedEncodingException e) {
// UTF-8 should always be defined
return null;