code: private InputStream loadResource(String name) {
          // we need to search the components of the path to see if we can
          // find the class we want.
          InputStream stream = null;
  
          Enumeration e = pathComponents.elements();
          while (e.hasMoreElements() && stream == null) {
              File pathComponent = (File) e.nextElement();
              stream = getResourceStream(pathComponent, name);
          }
          return stream;
      }
docs: Returns a stream to read the requested resource name from this loader.
  
  @param name The name of the resource for which a stream is required.
  Must not be <code>null</code>.
  
  @return a stream to the required resource or <code>null</code> if
  the resource cannot be found on the loader's classpath.