private void xmlWriteTab(TabbedDockableContainer tpane, PrintWriter out)
			throws IOException {
		out.println("<TabbedDockable>");
		for (int i = 0; i < tpane.getTabCount(); i++) {
			Dockable d = tpane.getDockableAt(i);
			if (d == null) { // 2008/07/05
				// means that the dockable has been (and is still) maximized
				SingleDockableContainer maxContainer = (SingleDockableContainer) maximizedComponent;
				d = maxContainer.getDockable();
				xmlWriteDockable(d, out);
			} else {
				xmlWriteDockable(d, out);
			}
		}
		out.println("</TabbedDockable>");
	}