private void serveStaticResources(String prefix, Map<String, Resource> resources) {

        // Add all resources under given prefix
        for (Map.Entry<String, Resource> staticResource : resources.entrySet()) {

            // Get path and resource from path/resource pair
            String path = staticResource.getKey();
            Resource resource = staticResource.getValue();

            // Serve within namespace-derived path
            serve(prefix + path).with(new ResourceServlet(resource));

        }

    }
Serves each of the given resources under the given prefix. The path of
each resource relative to the prefix is the key of its entry within the
map.

@param prefix
    The prefix under which each resource should be served.

@param resources
    A map of all resources to serve, where the key of each entry in the
    map is the desired path of that resource relative to the prefix.
guacamole/src/main/java/org/apache/guacamole/extension/ExtensionModule.java