code: private Map<String, PipelineCommit> getCommitsAfterStage(PipelineStage stage, Pipeline pipeline, Dashboard dashboard,List<PipelineStage> pipelineStageList,Map<String,String> orderMap){
          Map<String, PipelineCommit> unionOfAllSets = new HashMap<>();
          // get key(ordinal) for stage name
          List<String> list = getKeysByValue(orderMap,stage.getName());
          int ordinal = Integer.parseInt(list.get(0));
          for (int systemStageOrdinal = ordinal+1; systemStageOrdinal < pipelineStageList.size(); ++systemStageOrdinal) {
              PipelineStage systemStage = null;
              for (Map.Entry<String, String> entry : orderMap.entrySet()) {
                  String stageOrder = entry.getKey();
                  String stageName = entry.getValue();
                  if(Integer.parseInt(stageOrder) == systemStageOrdinal){
                      for(PipelineStage currentStage : pipelineStageList){
                          if(stageName.equalsIgnoreCase(currentStage.getName())){
                               systemStage = currentStage;
                          }
                      }
                  }
              }
              Map<String, PipelineCommit> commits = findCommitsForStage(dashboard, pipeline, systemStage);
              unionOfAllSets.putAll(commits);
          }
          return unionOfAllSets;
      }
docs: Finds a map of commits for all stages after the current stage
  @param stage
  @param pipeline
  @param dashboard
  @return