throw new DomEx(DomEx.NOT_SUPPORTED_ERR, name, null, 0);
throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR, name, null, 0);
  public void setParameter(String name, Object value)    throws DOMException  {    name = name.toLowerCase();    if ("cdata-sections".equals(name))      {        cdataSections = "true".equals(value.toString());      }    else if ("comments".equals(name))      {        comments = "true".equals(value.toString());      }    else if ("element-content-whitespace".equals(name))      {        elementContentWhitespace = "true".equals(value.toString());      }    else if ("entities".equals(name))      {        entities = "true".equals(value.toString());      }    else if ("error-handler".equals(name))      {        try          {            errorHandler = (DOMErrorHandler) value;          }        catch (ClassCastException e)          {            throw new DomEx(DomEx.TYPE_MISMATCH_ERR,                            value.getClass().getName(), null, 0);          }      }    else if ("namespace-declarations".equals(name))      {        namespaceDeclarations = "true".equals(value.toString());      }    else if ("split-cdata-sections".equals(name))      {        comments = "true".equals(value.toString());      }    else if ("infoset".equals(name))      {        if ("true".equals(value.toString()))          {            entities = false;            cdataSections = false;            namespaceDeclarations = true;            elementContentWhitespace = true;            comments = true;          }      }    else if (("canonical-form".equals(name) ||              "check-character-normalization".equals(name) ||              "datatype-normalization".equals(name) ||              "normalize-characters".equals(name) ||              "validate".equals(name) ||              "validate-if-schema".equals(name)) &&             "false".equals(value.toString()))      {        // NOOP      }    else if (("namespaces".equals(name) ||              "well-formed".equals(name)) &&             "true".equals(value.toString()))      {        // NOOP      }    else      {        throw new DomEx(DomEx.NOT_SUPPORTED_ERR, name, null, 0);      }  }