class DefaultSchedulerService implements SchedulerService {

    @Override
    public void schedule(final String beanName, final Boolean forceScheduling) {
        if (this.applicationContext.containsBean(beanName)) {
            final Scheduler scheduler = this.applicationContext.getBean(beanName, Scheduler.class);
            if (scheduler.getSchedulerStatus().equals(SchedulerStatus.RUNNING)
                    && Boolean.FALSE.equals(forceScheduling)) {
                log.info("Scheduler: " + beanName + " already running");
            } else {
                scheduler.schedule();
            }
        } else {
            throw new SpringBatchLightminConfigurationException("Could not schedule bean with name: " + beanName);
        }
    }

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

}