if (isClosed()) throw new ClassNotFoundException(name); if (Debug.DEBUG && Debug.DEBUG_LOADER) Debug.println("BundleLoader[" + this + "].loadBundleClass(" + name + ")"); createClassLoader();  if (parent != null) { if (Framework.STRICT_DELEGATION) { if (name.startsWith(JAVA_CLASS))  return parent.loadClass(name); } else try { return parent.loadClass(name); } catch (ClassNotFoundException cnfe) {  } }  String pkgName = getPackageName(name); Class result = null; PackageSource source = findImportedSource(pkgName); if (source != null) result = source.loadClass(name); else { source = findRequiredSource(pkgName); if (source != null) result = source.loadClass(name); if (result == null) result = findLocalClass(name); } if (result == null) throw new ClassNotFoundException(name); return result;
return findClass(name, true);
	public Class findClass(String name) throws ClassNotFoundException {		if (isClosed())			throw new ClassNotFoundException(name);		if (Debug.DEBUG && Debug.DEBUG_LOADER)			Debug.println("BundleLoader[" + this + "].loadBundleClass(" + name + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$		createClassLoader(); // make sure the classloader is created		// First check the parent classloader for system classes.		if (parent != null) {			if (Framework.STRICT_DELEGATION) {				if (name.startsWith(JAVA_CLASS))					// we want to throw ClassNotFoundExceptions if a java.* class cannot be loaded from the parent.					return parent.loadClass(name);			} else				try {					return parent.loadClass(name);				} catch (ClassNotFoundException cnfe) {					// we want to continue				}		}		String pkgName = getPackageName(name);		Class result = null;		PackageSource source = findImportedSource(pkgName);		if (source != null)			result = source.loadClass(name);		else {			source = findRequiredSource(pkgName);			if (source != null)				result = source.loadClass(name);			if (result == null)				result = findLocalClass(name);		}		if (result == null)			throw new ClassNotFoundException(name);		return result;	}