Iterator itr = ebds.iterator();
while (itr.hasNext()){
bd = (BundleDescriptor) itr.next();
ArchiveLoader archiveLoader = getArchiveLoader(bd);
if(archiveLoader instanceof AppArchiveLoader) {
((AppArchiveLoader)archiveLoader).
setJ2eeAppBean(j2eeAppBeans[i]);
((AppArchiveLoader)archiveLoader).
setAppsManager(appsManager);
try {
archiveLoader.unload((ArchiveDescriptor)bd,
false);
} catch ( Exception ex) {
//log the exception
}
} else {