throw new DomEx(DomEx.NOT_SUPPORTED_ERR);
throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR);
  public void setParameter(String name, Object value)    throws DOMException  {    if ("discard-default-content".equals(name))      {        discardDefaultContent = "true".equals(value.toString());      }    else if ("xml-declaration".equals(name))      {        xmlDeclaration = "false".equals(value.toString());      }    else      {        throw new DomEx(DomEx.NOT_SUPPORTED_ERR);      }  }