docs: public DecisionDefinitionEntity getPreviousDefinition() {
      DecisionDefinitionEntity previousDecisionDefinition = null;
  
      String previousDecisionDefinitionId = getPreviousDecisionDefinitionId();
      if (previousDecisionDefinitionId != null) {
  
        previousDecisionDefinition = loadDecisionDefinition(previousDecisionDefinitionId);
  
        if (previousDecisionDefinition == null) {
          resetPreviousDecisionDefinitionId();
          previousDecisionDefinitionId = getPreviousDecisionDefinitionId();
  
          if (previousDecisionDefinitionId != null) {
            previousDecisionDefinition = loadDecisionDefinition(previousDecisionDefinitionId);
          }
        }
      }
  
      return previousDecisionDefinition;
    }