return AccessController.doPrivileged(
new PrivilegedExceptionAction<Class>() {
@Override
public Class run() throws ClassNotFoundException {
String path = name.replace('.', '/').concat(".class");
Resource res = ucp().getResource(path, false);
if (res != null) {
try {
return defineClass(name, instrument(name, res));
} catch (IOException e) {
throw new ClassNotFoundException(name, e);