docs: public static void repairParentRelationships(Collection<ActivityInstanceImpl> values, String processInstanceId) {
      for (ActivityInstanceImpl activityInstance : values) {
        // if the determined activity instance id and the parent activity instance are equal,
        // just put the activity instance under the process instance
        if (valuesEqual(activityInstance.getId(), activityInstance.getParentActivityInstanceId())) {
          activityInstance.setParentActivityInstanceId(processInstanceId);
        }
      }
    }