private static void loggContextSwitchDetails(CaseExecutionEntity execution) {
final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext();
// only log for first atomic op:
if(executionContext == null ||( executionContext.getExecution() != execution) ) {
ProcessApplicationManager processApplicationManager = Context.getProcessEngineConfiguration().getProcessApplicationManager();
LOGG.log(Level.FINE,
String.format("[PA-CONTEXT] no target process application found for CaseExecution[%s], CaseDefinition[%s], Deployment[%s] Registrations[%s]",
execution.getId(),
execution.getCaseDefinitionId(),
((CaseDefinitionEntity) execution.getCaseDefinition()).getDeploymentId(),
processApplicationManager.getRegistrationSummary()));
}
}