/* */
/* */ public static org.w3c.dom.Node appendChild(org.dom4j.Node node, org.w3c.dom.Node newChild)
/* */ throws DOMException
/* */ {
/* 186 */ if ((node instanceof Branch)) {
/* 187 */ Branch branch = (Branch)node;
/* 188 */ org.w3c.dom.Node previousParent = newChild.getParentNode();
/* */
/* 190 */ if (previousParent != null) {
/* 191 */ previousParent.removeChild(newChild);
/* */ }
/* */
/* 194 */ branch.add((org.dom4j.Node)newChild);
/* */
/* 196 */ return newChild;
/* */ }
/* */
/* 199 */ throw new DOMException(3, "Children not allowed for this node: " + node);