code: private int getNextStep(int currentStep) {
          int nextStep = -1;
          
          // we find the next available step.
          for (int i = currentStep + 1; i <= STEP_THANKS; i++) {
              if(isStepEnabled(i)) {
                  nextStep = i;
                  break;
              }
          }
  
          return nextStep;
      }
docs: Get the next step given the current. Will check available steps to confirm.
  @param currentStep
  @return