class RunScheduler {

    public void unscheduleRunSchedule(final RunSchedule schedule) {
        try {
            log.debug("Request received to unscheduling trigger for: " + schedule.getType()
                    + ID + schedule.getSchedulableId());

            final JobKey key = jobDetail(schedule).getKey();

            quartzScheduler.deleteJob(key);

            log.debug("Schedule " + schedule.getCronExpression() + " for "  + schedule.getType()
                    + ID + schedule.getSchedulableId() + " was revoked successfully.");
        } catch (SchedulerException e) {
            log.error("SchedulerException while unscheduling trigger for "  + schedule.getType()
                    + ID + schedule.getSchedulableId() + " : " + e.getMessage());
        }
    }

    @Autowired  RunScheduler(final SchedulerFactoryBean schedulerFactoryBean);

}