public void init() throws IOException, SAXException {
InputStream inputStream = null;
try {
inputStream = App.class.getResourceAsStream("DefaultLocale.xml");
LocaleResources defaultResources = new LocaleResources(inputStream);
inputStream.close();
localizer = new Localizer(defaultResources, new DirectoryLocalesSource("locales"));
} finally {
if (inputStream != null)
inputStream.close();