protected function getFilterParameters($objItemRenderer)
    {
        $filterUrlBuilder = System::getContainer()->get('metamodels.filter_url');
        $filterUrl        = $filterUrlBuilder->getCurrentFilterUrl();

        $result = [];
        foreach ($objItemRenderer->getFilterSettings()->getParameters() as $name) {
            if ($filterUrl->hasSlug($name)) {
                $result[$name] = $filterUrl->getSlug($name);
            }
            // DAMN Contao - we have to "mark" the keys in the Input class as used as we get an 404 otherwise.
            Input::get($name);
        }

        return $filterUrl->getSlugParameters();
    }