if (classLoader != null) {
environment.setClassLoader(classLoader);
}
// add the process-engine context
environment.setContext(new SpringContext(applicationContext));
environment.setContext(processEngineWireContext);
// add the transaction context
WireDefinition usedWireDefinition = transactionWireDefinition;
if (txWireObjects != null) {