docs: public void replace(PvmExecutionImpl execution) {
      // activity instance id handling
      this.activityInstanceId = execution.getActivityInstanceId();
      this.isActive = execution.isActive;
  
      this.replacedBy = null;
      execution.replacedBy = this;
  
      this.transitionsToTake = execution.transitionsToTake;
  
      execution.leaveActivityInstance();
    }