}
}
private static abstract class Spark11TaskContext {
static void addOnCompletition(TaskContext taskContext, final Function0<?> function) {
taskContext.addTaskCompletionListener(new TaskCompletionListener() {
@Override
public void onTaskCompletion(TaskContext context) {
function.apply();
}
});