// stop
for (final BeanContext deployment : deployments) {
final String deploymentID = deployment.getDeploymentID() + "";
try {
final Container container = deployment.getContainer();
container.stop(deployment);
} catch (Throwable t) {
undeployException.getCauses().add(new Exception("bean: " + deploymentID + ": " + t.getMessage(), t));
}
}