ActivityState secondState = activityState;
Date overdue = secondState.getTimeOverdue();
if (now.compareTo(overdue) >= 0) {
Exchange exchange = createExchange();
exchange.getIn().setBody(activityState);
processor.process(exchange);
} else {
LOG.warn("Process has not actually expired; the time is: " + now + " but the overdue time is: " + overdue);
}
}
}