public URL getResource(final String name) {
    final boolean isTraceEnabled = logger.isTraceEnabled();
    if (isTraceEnabled) {
      logger.trace("getResource({})", name);
    }

    for (ClassLoader classLoader : getClassLoaders()) {
      if (isTraceEnabled) {
        logger.trace("getResource trying: {}", classLoader);
      }
      try {
        URL url = classLoader.getResource(name);

        if (url != null) {
          if (isTraceEnabled) {
            logger.trace("getResource found by: {}", classLoader);
          }
          return url;
        }
      } catch (SecurityException e) {
        // try next classLoader
      }
    }

    return null;
  }
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