public URL getResource(final Class<?> contextClass, final String name) {
    if (contextClass != null) {
      URL url = contextClass.getResource(name);
      if (url != null) {
        return url;
      }
    }
    return getResource(name);
  }
Finds the resource with the given name. This method will first search the class loader of the
context class for the resource. That failing, this method will invoke
{@link #getResource(String)} to find the resource.

@param contextClass The class whose class loader will first be searched
@param name The resource name
@return A <tt>URL</tt> object for reading the resource, or <tt>null</tt> if the resource could
        not be found or the invoker doesn't have adequate privileges to get the resource.
geode-deployment/geode-deployment-legacy/src/main/java/org/apache/geode/classloader/internal/LegacyClasspathServiceImpl.java