protected Class<?> loadClass(final String name, final boolean resolve)
      throws ClassNotFoundException {
    // First, check if the class has already been loaded
    Class<?> clazz = null; // TODO: reimplement this goodness findLoadedClass(name);
    if (clazz == null) {
      try {
        if (this.parent == null) {
          // clazz = findBootstrapClassOrNull(name);
        } else {
          clazz = this.parent.loadClass(name, false);
        }
      } catch (final ClassNotFoundException e) { // NOPMD
        // ClassNotFoundException thrown if class not found
        // from the non-null parent class loader
      }
      if (clazz == null) {
        // If still not found, then invoke findClass in order
        // to find the class.
        clazz = this.findClass(name);
      }
    }
    // if (resolve) {
    // resolveClass(c);
    // }
    return clazz;
  }
protected Class < ? > loadClass ( final String name , final boolean resolve ) throws ClassNotFoundException { Class < ? > clazz = null ; if ( clazz == null ) { try { if ( this . parent == null ) { } else { clazz = this . parent . loadClass ( name , false ) ; } } catch ( final ClassNotFoundException e ) { } if ( clazz == null ) { clazz = this . findClass ( name ) ; } } return clazz ; }
Loads the class with the specified <a href="#name">binary name</a>. The default implementation
of this method searches for classes in the following order:

<ol>
<li>
<p>
Invoke {@link #findLoadedClass(String)} to check if the class has already been loaded.
</p>
</li>

<li>
<p>
Invoke the {@link #loadClass(String) <tt>loadClass</tt>} method on the parent class loader. If
the parent is <tt>null</tt> the class loader built-in to the virtual machine is used, instead.
</p>
</li>

<li>
<p>
Invoke the {@link #findClass(String)} method to find the class.
</p>
</li>

</ol>

<p>
If the class was found using the above steps, and the <tt>resolve</tt> flag is true, this
method will then invoke the {@link #resolveClass(Class)} method on the resulting <tt>Class</tt>
object.
</p>

<p>
Subclasses of <tt>ClassLoader</tt> are encouraged to override {@link #findClass(String)},
rather than this method.
</p>

@param name The <a href="#name">binary name</a> of the class

@param resolve If <tt>true</tt> then resolve the class

@return The resulting <tt>Class</tt> object

@throws ClassNotFoundException If the class could not be found