public function clearCache($reactivateModules = true)
    {
        $this->handlers = array();
        
        if ($reactivateModules) {
            $this->framework->getModuleManager()->reactivateModules();
        }
    }