code: protected void makeProcessDefinitionsConsistentWithPersistedVersions(ParsedDeployment parsedDeployment) {
          for (ProcessDefinitionEntity processDefinition : parsedDeployment.getAllProcessDefinitions()) {
              ProcessDefinitionEntity persistedProcessDefinition =
                      bpmnDeploymentHelper.getPersistedInstanceOfProcessDefinition(processDefinition);
  
              if (persistedProcessDefinition != null) {
                  processDefinition.setId(persistedProcessDefinition.getId());
                  processDefinition.setVersion(persistedProcessDefinition.getVersion());
                  processDefinition.setSuspensionState(persistedProcessDefinition.getSuspensionState());
              }
          }
      }
docs: Loads the persisted version of each process definition and set values on the in-memory
  version to be consistent.