LOG.info(GettextResource.gettext(i18nMessages, plugablePanel.getPluginName()+ " node environment loaded."));
}
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(outFile));
OutputFormat format = OutputFormat.createPrettyPrint();
format.setEncoding("UTF-8");
XMLWriter xmlWriter = new XMLWriter(bos, format);
xmlWriter.write(document);
xmlWriter.flush();
xmlWriter.close();
}
LOG.info(GettextResource.gettext(i18nMessages, "Environment saved."));
}else{
LOG.error(GettextResource.gettext(i18nMessages, "Error saving environment, output file is null."));
}