code: public Enumeration findResources(String name) throws IOException {
  
          if (log.isDebugEnabled())
              log.debug("    findResources(" + name + ")");
  
          Vector result = new Vector();
  
          int jarFilesLength = jarFiles.length;
          int repositoriesLength = repositories.length;
  
          int i;
  
          // Looking at the repositories
          for (i = 0; i < repositoriesLength; i++) {
              try {
                  String fullPath = repositories[i] + name;
                  resources.lookup(fullPath);
                  // Note : Not getting an exception here means the resource was
                  // found
                  try {
                      result.addElement(getURI(new File(files[i], name)));
                  } catch (MalformedURLException e) {
                      // Ignore
                  }
              } catch (NamingException e) {
              }
          }
  
          // Looking at the JAR files
          synchronized (jarFiles) {
              if (openJARs()) {
                  for (i = 0; i < jarFilesLength; i++) {
                      JarEntry jarEntry = jarFiles[i].getJarEntry(name);
                      if (jarEntry != null) {
                          try {
                              String jarFakeUrl = getURI(jarRealFiles[i]).toString();
                              jarFakeUrl = "jar:" + jarFakeUrl + "!/" + name;
                              result.addElement(new URL(jarFakeUrl));
                          } catch (MalformedURLException e) {
                              // Ignore
                          }
                      }
                  }
              }
          }
  
          // Adding the results of a call to the superclass
          if (hasExternalRepositories) {
  
              Enumeration otherResourcePaths = super.findResources(name);
  
              while (otherResourcePaths.hasMoreElements()) {
                  result.addElement(otherResourcePaths.nextElement());
              }
  
          }
  
          return result.elements();
  
      }
docs: Return an enumeration of <code>URLs</code> representing all of the
  resources with the given name.  If no resources with this name are
  found, return an empty enumeration.
  
  @param name Name of the resources to be found
  
  @exception IOException if an input/output error occurs