public static  void copy(JoeTree tree, OutlineLayoutManager layout) {
		NodeSet nodeSet = new NodeSet();
		JoeNodeList nodeList = tree.getSelectedNodes();
		for (int i = 0, limit = nodeList.size(); i < limit; i++) {
			Node node = nodeList.get(i).cloneClean();
			node.setDepthRecursively(0);
			nodeSet.addNode(node);
		}
		
		// [md] This conditional is here since StringSelection subclassing seems to be broken in Java 1.3.1.
		if (PlatformCompatibility.isJava1_3_1()) {
			java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(nodeSet.toString()), null);
		} else {
			Outliner.clipboard.setContents(new NodeSetTransferable(nodeSet), Outliner.outliner);
		}
	}