public Enumeration<URL> getResources(final String name) throws IOException {
    final LinkedHashSet<URL> urls = new LinkedHashSet<>();

    for (ClassLoader classLoader : getClassLoaders()) {
      Enumeration<URL> resources = classLoader.getResources(name);
      if (resources != null && resources.hasMoreElements()) {
        CollectionUtils.addAll(urls, resources);
      }
    }

    return Collections.enumeration(urls);
  }
Returns an input stream for reading the specified resource.
<p>
The search order is described in the documentation for {@link #getResource(Class, String)}.

@param contextClass The class whose class loader will first be searched
@param name The resource name
@return An input stream for reading the resource, or <tt>null</tt> if the resource could not be
        found
geode-deployment/geode-deployment-legacy/src/main/java/org/apache/geode/classloader/internal/LegacyClasspathServiceImpl.java