/** * XML Serialization * * @return * @throws JDOMException * @throws IOException */ public Element asXML() throws JDOMException, IOException { Element stackElement = new Element("dispatch"); for (DispatchLayer<?> layer : dispatchLayers) { stackElement.addContent(Tools.dispatchLayerAsXML(layer)); } return stackElement; }