} else if (job instanceof CronJob) {
((CronJob)job).execute(name);
} else if (job instanceof Runnable) {
((Runnable)job).run();
} else {
logger.error("job named '" + name + "' is of invalid class: " + job.getClass().getName());
}
} catch (final Throwable t) {
logger.error("Cron job name '" + name + " died.", t);
if (t instanceof JobExecutionException) {