public void cancelScheduledTask(TimerTask task) {
        TaskEngine.TimerTaskWrapper taskWrapper = wrappedTasks.remove(task);
        if (taskWrapper != null) {
            taskWrapper.cancel();
        }
    }
Cancels the execution of a scheduled task. {@link java.util.TimerTask#cancel()}

@param task the scheduled task to cancel.
xmppserver/src/main/java/org/jivesoftware/util/TaskEngine.java