code: protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException
      {
          Class c= findLoadedClass(name);
          ClassNotFoundException ex= null;
          boolean tried_parent= false;
          if (c == null && (_java2compliant || isSystemPath(name)) && !isServerPath(name) && _parent!=null)
          {
              if (log.isTraceEnabled())
                  log.trace("try loadClass " + name + " from " + _parent);
              tried_parent= true;
              try
              {
                  c= _parent.loadClass(name);
                  if (log.isTraceEnabled())
                      log.trace("p0 loaded " + c);
              }
              catch (ClassNotFoundException e)
              {
                  ex= e;
              }
          }
  
          if (c == null)
          {
              if (log.isTraceEnabled())
                  log.trace("try findClass " + name + " from " + _urlClassPath);
              try
              {
                  c= this.findClass(name);
                  if (log.isTraceEnabled())
                      log.trace("cx loaded " + c);
              }
              catch (ClassNotFoundException e)
              {
                  ex= e;
              }
          }
  
          if (c == null && !tried_parent && !isServerPath(name) && _parent!=null)
          {
              if (log.isTraceEnabled())
                  log.trace("try loadClass " + name + " from " + _parent);
              c= _parent.loadClass(name);
              if (log.isTraceEnabled())
                  log.trace("p1 loaded " + c);
          }
          
          if (c == null)
              throw ex;
  
          if (resolve)
              resolveClass(c);
  
          return c;
      }
docs: /* ------------------------------------------------------------