protected void addClassPathManifestEntries(Set<Resource> result) {
        try {
            String javaClassPathProperty = System.getProperty("java.class.path");
            for (String path : StringUtils.delimitedListToStringArray(
                javaClassPathProperty, System.getProperty("path.separator"))) {
                try {
                    String filePath = new File(path).getAbsolutePath();
                    int prefixIndex = filePath.indexOf(':');
                    if (prefixIndex == 1) {
                        // Possibly "c:" drive prefix on Windows, to be upper-cased for proper duplicate detection
                        filePath = StringUtils.capitalize(filePath);
                    }
                    // # can appear in directories/filenames, java.net.URL should not treat it as a fragment
                    filePath = StringUtils.replace(filePath, "#", "%23");
                    // Build URL that points to the root of the jar file
                    UrlResource jarResource = new UrlResource(ResourceUtils.JAR_URL_PREFIX +
                        ResourceUtils.FILE_URL_PREFIX + filePath + ResourceUtils.JAR_URL_SEPARATOR);
                    // Potentially overlapping with URLClassLoader.getURLs() result above!
                    if (!result.contains(jarResource) && !hasDuplicate(filePath, result) && jarResource.exists()) {
                        result.add(jarResource);
                    }
                } catch (MalformedURLException ex) {
                    if (LOGGER.isDebugEnabled()) {
                        LOGGER.debug("Cannot search for matching files underneath [{}] because it cannot be converted to a valid 'jar:' URL: {}", path, ex.getMessage());
                    }
                }
            }
        } catch (Exception ex) {
            if (LOGGER.isDebugEnabled()) {
                LOGGER.debug("Failed to evaluate 'java.class.path' manifest entries: {}", ex.getMessage());
            }
        }
    }
Determine jar file references from the "java.class.path." manifest property and add them
to the given set of resources in the form of pointers to the root of the jar file content.

@param result the set of resources to add jar roots to
@since 4.3
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/core/io/support/PathMatchingResourcePatternResolver.java