final RuntimeContainerDelegateImpl containerDelegate = getContainerDelegate();
containerDelegate.getServiceContainer().createUndeploymentOperation("undeploying camunda BPM platform")
.addStep(new StopProcessApplicationsStep())
.addStep(new StopProcessEnginesStep())
.addStep(new StopJobExecutorStep())
.addStep(new StopJcaExecutorServiceStep())
.execute();
LOGGER.log(Level.INFO, "camunda BPM platform stopped.");