private static void dump(StringBuilder buffer, int depth, DockLayoutNode node) {
		if (node instanceof DockLayout) {
			DockLayout layout = (DockLayout) node;
			pad(buffer, depth);
			buffer.append(layout);
			buffer.append('\n');
			depth++;
			for (DockLayoutNode child : layout.getChildren()) {
				if (child != null) {
					dump(buffer, depth, child);
				}
			}
		} else if (node instanceof DockContainer) {
			pad(buffer, depth);
			buffer.append(node);
			buffer.append('\n');
		}
	}