in src/main/java/org/apache/sling/commons/compiler/impl/IsolatedClassLoader.java [122:138]
private Class<?> findClassPrivileged(final String name) throws ClassNotFoundException {
// prepare the name of the class
final String path = "/" + name.replace('.', '/') + ".class";
InputStream is = null;
try {
is = this.classLoaderWriter.getInputStream(path);
final Class<?> c = defineClass(name, is);
if (c == null) {
throw new ClassNotFoundException(name);
}
return c;
} catch ( final ClassNotFoundException cnfe) {
throw cnfe;
} catch (final Throwable t) {
throw new ClassNotFoundException(name, t);
}
}