class DefaultSchedulerService implements SchedulerService {

    @Override
    public SchedulerStatus getSchedulerStatus(final String beanName) {
        final SchedulerStatus status;
        if (this.applicationContext.containsBean(beanName)) {
            final Scheduler scheduler = this.applicationContext.getBean(beanName, Scheduler.class);
            status = scheduler.getSchedulerStatus();
        } else {
            throw new SpringBatchLightminConfigurationException("Could not get status for bean with name: " + beanName);
        }
        return status;
    }

    public  DefaultSchedulerService(final BeanRegistrar beanRegistrar,
                                   final JobRepository jobRepository,
                                   final JobRegistry jobRegistry);

}