@Override
  protected List<BuildStatConfiguration> migrateBuildStatConfigs(
      List<BuildStatConfiguration> buildStatConfigs) {

    ArrayList<BuildStatConfiguration> migratedBuildStatConfigs =
        new ArrayList<BuildStatConfiguration>();
    for (BuildStatConfiguration cfg : buildStatConfigs) {
      // By default, we were only displaying count dimension (and not average/total build duration)
      cfg.setDimensionsShown(new YAxisChartDimension[] {YAxisChartDimension.BUILD_COUNTER});

      migratedBuildStatConfigs.add(cfg);
    }
    return migratedBuildStatConfigs;
  }
  @Override
  protected List<BuildStatConfiguration> migrateBuildStatConfigs(
      List<BuildStatConfiguration> buildStatConfigs) {

    ArrayList<BuildStatConfiguration> migratedBuildStatConfigs =
        new ArrayList<BuildStatConfiguration>();
    for (BuildStatConfiguration cfg : buildStatConfigs) {
      // By default, no filtering on node names
      cfg.setNodeFilter(FieldFilterFactory.ALL_VALUES_FILTER_LABEL);

      // Replacing "jobNameRegex" by "fieldRegex" in job filters
      cfg.setJobFilter(
          cfg.getJobFilter()
              .replaceAll(
                  FieldFilterFactory.OLD_JOB_NAME_REGEX_LABEL,
                  FieldFilterFactory.REGEX_FIELD_FILTER_LABEL));

      migratedBuildStatConfigs.add(cfg);
    }
    return migratedBuildStatConfigs;
  }