code: private boolean isStageActive(Pipeline pipeline, StageConfig nextStage) {
          return stageDao.isStageActive(pipeline.getName(), CaseInsensitiveString.str(nextStage.name()));
      }
docs: this method checks if specified stage is active in all pipelines