// Add all additional attributes from extension packages if there are any:
if ((extensions != null) && (extensions.size() > 0)) {
for (String key : extensions.keySet()) {
SBasePlugin plugin = extensions.get(key);
if (plugin != null) {
Map<String, String> pluginAttributes = plugin.writeXMLAttributes();
if (pluginAttributes != null) {
attributes.putAll(pluginAttributes);
}
} else {
logger.warn(MessageFormat.format(