Element () { @NonNls Element element = new Element("LogFilters"); try { for (LogFilter filter : myRegisteredLogFilters.keySet()) { Element filterElement = new Element(FILTER); filterElement.setAttribute(IS_ACTIVE, myRegisteredLogFilters.get(filter).toString()); filter.writeExternal(filterElement); element.addContent(filterElement); } DefaultJDOMExternalizer.writeExternal(this, element); } catch (WriteExternalException e) { LOG.error(e); } return element; }