public static int indexOfDataSpaceStorageElement(List<DirectoryListingEntry> list, String pattern) {
        int place = 0;
        for (DirectoryListingEntry directoryListingEntry : list) {
            if (directoryListingEntry.getName().startsWith("::DataSpace/Storage") &&
                    directoryListingEntry.getName().contains(pattern)) {
                return place;
            }
            ++place;
        }
        return -1;// not found
    }
Searches for some pattern in the directory listing entry list
This requires that the entry name start with "::DataSpaceStorage"
See TIKA-4204

@param list
@param pattern
@return an index, if nothing found returns -1
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/chm/ChmCommons.java