public function clear()
    {
        if ($this->getPersistor()->clear()) {

            $event = new Event($this);

            $this->getEventDispatcher()->dispatch(self::EVENT_CLEAR_ALL_TASKS, $event);
            return true;
        }
        
        return false;
    }