I think `findClass` is the method you want to override. From the javadocs for `loadClass`: *Subclasses of ClassLoader are encouraged to override findClass(String), rather than this method.*