code: public Map<String, URL> getResourcesMap(String uri) throws IOException {
          String basePath = path + uri;
  
          Map<String, URL> resources = new HashMap<>();
          if (!basePath.endsWith("/")) {
              basePath += "/";
          }
          Enumeration<URL> urls = getResources(basePath);
  
          while (urls.hasMoreElements()) {
              URL location = urls.nextElement();
  
              try {
                  if (location.getProtocol().equals("jar")) {
  
                      readJarEntries(location, basePath, resources);
  
                  } else if (location.getProtocol().equals("file")) {
  
                      readDirectoryEntries(location, resources);
  
                  }
              } catch (Exception e) {
              }
          }
  
          return resources;
      }
docs: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *