code: public URL getResource(String name)
      {
          URL url= null;
          boolean tried_parent= false;
          if (_parent!=null &&(_java2compliant || isSystemPath(name)))
          {
              if (log.isTraceEnabled())
                  log.trace("try getResource " + name + " from " + _parent);
              tried_parent= true;
              url= _parent.getResource(name);
          }
  
          if (url == null)
          {
              if (log.isTraceEnabled())
                  log.trace("try findResource " + name + " from " + _urlClassPath);
              url= this.findResource(name);
  
              if (url == null && name.startsWith("/"))
              {
                  if (log.isDebugEnabled())
                      log.debug("HACK leading / off " + name);
                  url= this.findResource(name.substring(1));
              }
          }
  
          if (_parent!=null && url == null && !tried_parent)
          {
              if (log.isTraceEnabled())
                  log.trace("try getResource " + name + " from " + _parent);
              url= _parent.getResource(name);
          }
  
          if (url != null)
              if (log.isTraceEnabled())
                  log.trace("found " + url);
  
          return url;
      }
docs: /* ------------------------------------------------------------