try {
// unless the user has overridden the stop behavior,
// this causes the process application to remove its services
// (triggers nested undeployment operation)
ProcessApplicationInterface processApplication = processApplicationReference.getProcessApplication();
processApplication.undeploy();
} catch(Throwable t) {
LOGGER.log(Level.WARNING, "Exception while stopping ProcessApplication ", t);
}