code: public static boolean destroySecondNonScope(PvmExecutionImpl execution) {
      ensureScope(execution);
      boolean performLegacyBehavior = isLegacyBehaviorRequired(execution);
  
      if(performLegacyBehavior) {
        // legacy behavior is to do nothing
      }
  
      return performLegacyBehavior;
    }
docs: Destroy an execution for an activity that was previously not a scope and now is
  (e.g. event subprocess)