docs: public void exportView( Node exportRootNode,
                              ContentHandler contentHandler,
                              boolean skipBinary,
                              boolean noRecurse ) throws RepositoryException, SAXException {
          assert exportRootNode != null;
          assert contentHandler != null;
          session.checkLive();
  
          // Export the namespace mappings used in this session
          NamespaceRegistry registry = session.getWorkspace().getNamespaceRegistry();
  
          startDocument(contentHandler);
          String[] namespacePrefixes = registry.getPrefixes();
          for (int i = 0; i < namespacePrefixes.length; i++) {
              String prefix = namespacePrefixes[i];
  
              if (!restrictedPrefixes.contains(prefix)) {
                  contentHandler.startPrefixMapping(prefix, registry.getURI(prefix));
              }
          }
  
          exportNode(exportRootNode, contentHandler, skipBinary, noRecurse);
  
          for (int i = 0; i < namespacePrefixes.length; i++) {
              if (!restrictedPrefixes.contains(namespacePrefixes[i])) {
                  contentHandler.endPrefixMapping(namespacePrefixes[i]);
              }
          }
  
          endDocument(contentHandler);
      }