throw new DomEx(DomEx.NOT_SUPPORTED_ERR);
throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR);
  public Node adoptNode(Node source)  {    switch (source.getNodeType())      {      case DOCUMENT_NODE:      case DOCUMENT_TYPE_NODE:        throw new DomEx(DomEx.NOT_SUPPORTED_ERR);      case ENTITY_NODE:      case NOTATION_NODE:        throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR);      }    if (source instanceof DomNode)      {        DomNode src = (DomNode) source;        DomNode dst = src;        if (dst.parent != null)          {            dst = (DomNode) dst.cloneNode(true);          }        dst.setOwner(this);        src.notifyUserDataHandlers(UserDataHandler.NODE_ADOPTED, src, dst);        return dst;      }    return null;  }