writer.endElement("bars");
}
protected void saveBar(XMLWriter writer, MyDoggyToolWindowManager toolWindowManager, ToolWindowAnchor anchor) throws SAXException {
MultiSplitDockableContainer multiSplitDockableContainer = toolWindowManager.getBar(anchor).getToolsContainer();
if (multiSplitDockableContainer.getContentCount() > 0) {
AttributesImpl attributes = new AttributesImpl();
attributes.addAttribute(null, "anchor", null, null, anchor.toString());
writer.startElement("bar", attributes);
writer.startElement("model");
ByteArrayOutputStream os = new ByteArrayOutputStream();
XMLEncoder encoder = new XMLEncoder(os);
encoder.writeObject(multiSplitDockableContainer.getModel());
encoder.flush();
encoder.close();
String model = os.toString();
writer.cdata(model.substring(model.indexOf('\n')));