final StandardServer server = (StandardServer) event.getSource();
containerDelegate.getServiceContainer().createUndeploymentOperation("undeploy BPM platform")
.addAttachment(TomcatAttachments.SERVER, server)
.addStep(new StopProcessApplicationsStep())
.addStep(new StopProcessEnginesStep())
.addStep(new StopJobExecutorStep())
.execute();
LOGGER.log(Level.INFO, "camunda BPM platform stopped.");