public static boolean isValidExpression(final String cronExpression) { CronTriggerImpl trigger = new CronTriggerImpl(); try { trigger.setCronExpression(cronExpression); Date date = trigger.computeFirstFireTime(null); return date != null && date.after(new Date()); } catch (ParseException e) { logger.error(e.getMessage(), e); return false;