public static String tryToGetMsgTitle(DirectoryEntry node, String defaultVal) {

        for (String entryName : new String[] {"__substg1.0_0037001F", "__substg1.0_0E1D001F", "__substg1.0_0070001F"} ) {
            try {
                Entry entry = node.getEntry(entryName);
                if (entry instanceof DocumentEntry) {
                    try (InputStream is = new BoundedInputStream(1000, new DocumentInputStream((DocumentEntry) entry))) {
                        return org.apache.commons.io.IOUtils.toString(is, StandardCharsets.UTF_16LE);
                    }
                }
            } catch (IOException e) {
                //do nothing
            }
        }
        return defaultVal;
    }
Handle an office document that's embedded at the POIFS level
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/AbstractPOIFSExtractor.java