public static void install(String id, InputStream inputStream) {
logger.log(Level.FINE, "Installing messages '"+id+"'");
try {
Map applicationMessages = new HashMap();
SimpleImporter importer = new SimpleImporter();
importer.setIncludeLeadingCDataIntoStartElementCallback(true);
ConfigurationHandler handler = new ConfigurationHandler();
importer.addSimpleImportHandler(handler);
importer.parse(new InputSource(inputStream));
Map parsedMessages = handler.getMessages();
applicationMessages.putAll(parsedMessages);
messages.putAll(applicationMessages);
installedMessages.put(id, applicationMessages.keySet());
} catch (Exception exception) {