* @param task the ScheduledExecutorTask to schedule
* @return the actual Runnable to schedule (may be a decorator)
*/
protected Runnable getRunnableToSchedule(ScheduledExecutorTask task) {
if (this.continueScheduledExecutionAfterException) {
return new DelegatingExceptionProofRunnable(task.getRunnable());
}
else {
return task.getRunnable();
}
}