public function getFirewall($path = null)
    {
        if (!$path) {
            $path = $this->getCurrentPathRelativeToBase();
        }
        foreach ($this->firewalls as $firewall) {
            if ($firewall->isPathCovered($path)) {
                return $firewall;
            }
        }
        return null;
    }