public InputStream getResourceAsStream(final Class<?> contextClass, final String name) {
    if (contextClass != null) {
      InputStream is = contextClass.getResourceAsStream(name);
      if (is != null) {
        return is;
      }
    }
    return getResourceAsStream(name);
  }
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