public function addDirectiveHandler($key, callable $callback = null)
    {
        if (!array_key_exists($key, $this->directiveHandlers)) {
            $this->directiveHandlers[$key] = $callback;
        }
    }