code: public static JobStatusCalculator warningOnLastJobFailed(final String key,
                                                               final JobRepository jobRepository,
                                                               final JobMetaRepository jobMetaRepository,
                                                               final String managementContextPath) {
          return new JobStatusCalculator(
                  key, 1, 1, jobRepository, jobMetaRepository, managementContextPath
          );
      }
docs: Builds a JobStatusCalculator that is reporting {@link Status#WARNING} if the last job failed.
  
  @param key                   key of the calculator
  @param jobRepository         the repository
  @param jobMetaRepository     meta data to indentify disabled jobs
  @param managementContextPath base path to link to job directly
  @return JobStatusCalculator