ClassLoader () { // Check if we may return the system classloader SecurityManager sm = SecurityManager.current; if (sm != null) { ClassLoader cl = VMStackWalker.getCallingClassLoader(); if (cl != null && cl != StaticData.systemClassLoader) sm.checkPermission(new RuntimePermission("getClassLoader")); } return StaticData.systemClassLoader; }