private void xmlWriteComponent(Component comp, PrintWriter out)
			throws IOException {
		if (comp instanceof SplitContainer) {
			xmlWriteSplit((SplitContainer) comp, out);
		} else if (comp instanceof TabbedDockableContainer) {
			xmlWriteTab((TabbedDockableContainer) comp, out);
		} else if (comp instanceof SingleDockableContainer) {
			Dockable d = ((SingleDockableContainer) comp).getDockable();
			xmlWriteDockable(d, out);
		} else if (comp == dummyMaximedReplacer) { // 2006/12/01 (maximized
													// component wasn't saved)
			SingleDockableContainer maxContainer = (SingleDockableContainer) maximizedComponent;
			Dockable d = maxContainer.getDockable();
			xmlWriteDockable(d, out);
		}

	}