@Override
public void execute(Map<String, Object> jobDataMap) {
final TodoMonitor monitor = (TodoMonitor) jobDataMap.get("TodoMonitorImpl:instance");
final TodoService service = (TodoService) jobDataMap.get("TodoService");
DateTime now = DateTime.now();
SimpleDateFormat fmt = GlobalSettings.createHunDateFormatter();
service.create("TodoTask description " + fmt.format(now.toDate()));
monitor.setLastRun(now.toDate());
monitor.setNextRun(now.plus(monitor.getInterval()).toDate());
logger.info("TodoTask executed at " + fmt.format(monitor.getLastRun()) + " and will execute at "
+ fmt.format(monitor.getNextRun()));
}