code: public boolean canSetParameter(String name, Object value) {
          if (value instanceof Boolean){
              if ( name.equalsIgnoreCase(DOMConstants.DOM_CDATA_SECTIONS)
                      || name.equalsIgnoreCase(DOMConstants.DOM_COMMENTS)
                      || name.equalsIgnoreCase(DOMConstants.DOM_ENTITIES)
                      || name.equalsIgnoreCase(DOMConstants.DOM_INFOSET)
                      || name.equalsIgnoreCase(DOMConstants.DOM_ELEMENT_CONTENT_WHITESPACE)
                      || name.equalsIgnoreCase(DOMConstants.DOM_NAMESPACES)    
                      || name.equalsIgnoreCase(DOMConstants.DOM_NAMESPACE_DECLARATIONS)
                      || name.equalsIgnoreCase(DOMConstants.DOM_SPLIT_CDATA)
                      || name.equalsIgnoreCase(DOMConstants.DOM_WELLFORMED)    
                      || name.equalsIgnoreCase(DOMConstants.DOM_DISCARD_DEFAULT_CONTENT)
                      || name.equalsIgnoreCase(DOMConstants.DOM_FORMAT_PRETTY_PRINT)                
                      || name.equalsIgnoreCase(DOMConstants.DOM_XMLDECL)){
                  // both values supported
                  return true;
              }
              else if (name.equalsIgnoreCase(DOMConstants.DOM_CANONICAL_FORM)
                      || name.equalsIgnoreCase(DOMConstants.DOM_CHECK_CHAR_NORMALIZATION)
                      || name.equalsIgnoreCase(DOMConstants.DOM_DATATYPE_NORMALIZATION)
                      || name.equalsIgnoreCase(DOMConstants.DOM_VALIDATE_IF_SCHEMA)
                      || name.equalsIgnoreCase(DOMConstants.DOM_VALIDATE)
                      // || name.equalsIgnoreCase(DOMConstants.DOM_NORMALIZE_CHARACTERS)
                      ) {
                  // true is not supported
                  return !((Boolean)value).booleanValue();
              }
              else if (name.equalsIgnoreCase(DOMConstants.DOM_IGNORE_UNKNOWN_CHARACTER_DENORMALIZATIONS)) {
                  // false is not supported
                  return ((Boolean)value).booleanValue();
              }
          }
          else if (name.equalsIgnoreCase(DOMConstants.DOM_ERROR_HANDLER) &&
                  value == null || value instanceof DOMErrorHandler){
              return true;
          }
          return false;
      }
docs: Checks if setting a parameter to a specific value is supported.
  
  @see org.w3c.dom.DOMConfiguration#canSetParameter(java.lang.String, java.lang.Object)
  @since DOM Level 3
  @param name A String containing the DOMConfiguration parameter name.
  @param value An Object specifying the value of the corresponding parameter.