public void uninstall(XBundle bundle, int options) throws BundleException {
LOGGER.tracef("Uninstall deployment: %s", bundle);
try {
ServerDeploymentHelper server = new ServerDeploymentHelper(deploymentManager);
Deployment dep = bundle.adapt(Deployment.class);
server.undeploy(getRuntimeName(dep));
} catch (Exception ex) {
LOGGER.warnCannotUndeployBundle(ex, bundle);
}
}