private void handlePart(PackagePart packagePart, XWPFStylesShim styles,
                            XWPFListManager listManager, XHTMLContentHandler xhtml)
            throws IOException, SAXException {

        Map<String, String> linkedRelationships =
                loadLinkedRelationships(packagePart, true, metadata);
        try (InputStream stream = packagePart.getInputStream()) {
            XMLReaderUtils.parseSAX(CloseShieldInputStream.wrap(stream),
                    new EmbeddedContentHandler(new OOXMLWordAndPowerPointTextHandler(
                            new OOXMLTikaBodyPartHandler(xhtml, styles, listManager, config),
                            linkedRelationships, config.isIncludeShapeBasedContent(),
                            config.isConcatenatePhoneticRuns())), context);
        } catch (TikaException | IOException e) {
            metadata.add(TikaCoreProperties.TIKA_META_EXCEPTION_WARNING,
                    ExceptionUtils.getStackTrace(e));
        }

    }
This is an experimental, alternative extractor for docx files.
This streams the main document content rather than loading the
full document into memory.
<p>
This will be better for some use cases than the classic docx extractor; and,
it will be worse for others.
</p>

@since 1.15
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/SXWPFWordExtractorDecorator.java