public BaseClassLoader createClassLoader(ClassLoader parent,
ClassLoaderDelegate delegate, BundleProtectionDomain domain,
BaseData data, String[] bundleclasspath) {
if (analyzer.shouldInstrumentClassesInBundle(data.getSymbolicName())) {
BundleLoader loader = (BundleLoader) delegate;
try {
loader.addDynamicImportPackage(ManifestElement.parseHeader(
Constants.DYNAMICIMPORT_PACKAGE, analyzer
.getRuntimePackages()));
} catch (BundleException be) {
throw new RuntimeException(be);
}