code: public void startElement(String namespaceURI, String localName, String name, Map<String, String> atts)
        throws RepositoryException
     {
        if (contentImporter == null)
        {
           switch (NodeTypeRecognizer.recognize(namespaceURI, name))
           {
              case DOCVIEW :
                 contentImporter =
                    new DocumentViewImporter(getParent(), ancestorToSave, uuidBehavior, dataConsumer,
                       nodeTypeDataManager, locationFactory, valueFactory, namespaceRegistry, accessManager, userState,
                       context, repository, currentWorkspaceName);
                 break;
              case SYSVIEW :
                 contentImporter =
                    new SystemViewImporter(getParent(), ancestorToSave, uuidBehavior, dataConsumer, nodeTypeDataManager,
                       locationFactory, valueFactory, namespaceRegistry, accessManager, userState, context, repository,
                       currentWorkspaceName);
                 break;
              default :
                 throw new IllegalStateException("There was an error during ascertaining the "
                    + "type of document. First element " + namespaceURI + ":" + name);
           }
        }
        contentImporter.startElement(namespaceURI, localName, name, atts);
     }
docs: {@inheritDoc}