/** * get the props for a certain locale */ private Properties getLocaleData(String locale) throws PragmatachException { try { /* * check locally */ Properties properties = localeData.get(locale); if (null != properties) { return properties; } else { /* * get resource */ final InputStream inputStream = plugin.getPluginContext().getResourceLoader().getResource(getLocalfileResourceName(locale)); if (null != inputStream) { properties = new Properties(); properties.load(inputStream); localeData.put(locale, properties); inputStream.close(); return properties; } else { return null; } } } catch (final Exception e) { throw new PragmatachException("Exception in getLocaleData", e); } }