docs: @Override
    public PvmExecutionImpl findExecutionForFlowScope(PvmScope targetFlowScope) {
      // if this execution is not a scope execution, use the parent
      final PvmExecutionImpl scopeExecution = isScope() ? this : getParent();
  
      ScopeImpl currentActivity = getActivity();
      EnsureUtil.ensureNotNull("activity of current execution", currentActivity);
  
      // if this is a scope execution currently executing a non scope activity
      currentActivity = currentActivity.isScope() ? currentActivity : currentActivity.getFlowScope();
  
      return scopeExecution.findExecutionForScope(currentActivity, (ScopeImpl) targetFlowScope);
    }