protected Class<?> findClass(String name) throws ClassNotFoundException
{
String path = classpath + "/" + name.replace('.', '/') + ".class";
if(Context.fs().exists(path))
{
StreamReader reader = new StreamReader(Context.fs().inputStream(path));
byte[] classBytes = reader.readAllBytes();
reader.close();
return defineClass(name, classBytes, 0, classBytes.length);
}
else
throw new ClassNotFoundException(name);
}