protected Class<?> currentLoadedClass() {
// First, check if AllPermission is allowed. If so, then we
// are effectively running in an unsafe environment, so just
// answer null (==> everything is a system class).
try {
checkPermission(new AllPermission());
return null;
} catch (SecurityException ex) {
}
// Now, check if there are any non-system class loaders in