final Application application = wbd.getApplication();
// unload PUs only for standaalone wars.
// embedded wars are taken care of in ApplicationLoader.
if(application != null && application.isVirtual()) {
try{
new PersistenceUnitLoaderImpl().unload(new ApplicationInfoImpl(
explodedLocation, wbd, webModule));
} catch(Exception e){
_logger.log(Level.WARNING, e.getMessage(), e);
return false;
}