docs: public ProcessDefinitionEntity getPreviousDefinition() {
      ProcessDefinitionEntity previousProcessDefinition = null;
  
      String previousProcessDefinitionId = getPreviousProcessDefinitionId();
      if (previousProcessDefinitionId != null) {
  
        previousProcessDefinition = loadProcessDefinition(previousProcessDefinitionId);
  
        if (previousProcessDefinition == null) {
          resetPreviousProcessDefinitionId();
          previousProcessDefinitionId = getPreviousProcessDefinitionId();
  
          if (previousProcessDefinitionId != null) {
            previousProcessDefinition = loadProcessDefinition(previousProcessDefinitionId);
          }
        }
      }
  
      return previousProcessDefinition;
    }