private Map<String, Resource> getClassPathResources(String mimetype, Collection<String> paths) {

        // If no paths are provided, just return an empty map 
        if (paths == null)
            return Collections.<String, Resource>emptyMap();

        // Add classpath resource for each path provided
        Map<String, Resource> resources = new LinkedHashMap<>(paths.size());
        for (String path : paths)
            resources.put(path, new ClassPathResource(classLoader, mimetype, path));

        // Callers should not rely on modifying the result
        return Collections.unmodifiableMap(resources);

    }
Returns a new map of all resources corresponding to the collection of
paths provided. Each resource will be associated with the given
mimetype, and stored in the map using its path as the key.

@param mimetype
    The mimetype to associate with each resource.

@param paths
    The paths corresponding to the resources desired.

@return
    A new, unmodifiable map of resources corresponding to the
    collection of paths provided, where the key of each entry in the
    map is the path for the resource stored in that entry.
guacamole/src/main/java/org/apache/guacamole/extension/Extension.java