code: public Document toDomDocument(Object obj, boolean tryProviders) throws TranslationException {
          if (this instanceof XmlDocumentTranslator)
              return ((XmlDocumentTranslator)this).toDomDocument(obj);
          else
              throw new UnsupportedOperationException("Translator: " + this.getClass().getName() + " does not implement" + XmlDocumentTranslator.class.getName());
      }
docs: Default implementation ignores providers.  Override to try registry lookup.