MBeans.registerApplication(app);
}
}
void applicationUndeployed(ApplicationUndeployedEvent event) {
AbstractDeployment deployment = event.getDeployment();
if (deployment.getName() != null) {
Application app = _switchYard.getApplication(deployment.getName());
if (app != null) {
MBeans.unregisterApplication(app);
_switchYard.removeApplication(deployment.getName());
}
}
}