throw new IllegalStateException(this + " classLoader is not connected to a domain (probably undeployed?) for class " + getName());
ClassLoaderUtils.checkClassName(className);
String path = ClassLoaderUtils.classNameToPath(className);
Loader loader = domain.findLoader(this, path, basePolicy.isImportAll(), true);
if (loader == null)
throw new ClassNotFoundException("Class " + className + " not found from " + this);
// This is a bit ugly but we can't abstract this behind an interface because
// that would make the methods public