prevent of undeploying units when there are active process instances for that unit
refactored so RuntimeEnvironment is only required to be produced when RuntimeManager is injected by CDI