/* 1871 */ groupName = "DEFAULT";
/* */ }
/* 1873 */ List jobs = getCurrentlyExecutingJobs();
/* 1874 */ Iterator it = jobs.iterator();
/* */
/* 1876 */ JobExecutionContext jec = null;
/* 1877 */ JobDetail jobDetail = null;
/* 1878 */ Job job = null;
/* */
/* 1880 */ boolean interrupted = false;
/* */
/* 1882 */ while (it.hasNext()) {
/* 1883 */ jec = (JobExecutionContext)it.next();
/* 1884 */ jobDetail = jec.getJobDetail();
/* 1885 */ if ((!jobName.equals(jobDetail.getName())) || (!groupName.equals(jobDetail.getGroup())))
/* */ continue;
/* 1887 */ job = jec.getJobInstance();
/* 1888 */ if ((job instanceof InterruptableJob)) {
/* 1889 */ ((InterruptableJob)job).interrupt();
/* 1890 */ interrupted = true; continue;
/* */ }
/* 1892 */ throw new UnableToInterruptJobException("Job '" + jobName + "' of group '" + groupName + "' can not be interrupted, since it does not implement " + InterruptableJob.class.getName());