LOG.debug("Sleeping again...");
}
private boolean hasToBeRegistered(final TaskExec execution) {
NotificationTask task = (NotificationTask) execution.getTask();
// True if either failed and failures have to be registered, or if ALL
// has to be registered.
return (Status.valueOf(execution.getStatus()) == Status.NOT_SENT
&& task.getTraceLevel().ordinal() >= TraceLevel.FAILURES.ordinal())
|| task.getTraceLevel() == TraceLevel.ALL;
}