public function onKernelController(FilterControllerEvent $event)
    {
        $request = $event->getRequest();

        if($request->attributes->get(self::JGP_AJAX_BLOCK_TAG)) {
            $queryParams = array();

            $controller = $event->getController();
            $reflectionMethod = is_array($controller)
                ? new \ReflectionMethod($controller[0], $controller[1])
                : new \ReflectionFunction($controller);

            $controllerParameters = array_map(function(\ReflectionParameter $parameter) {
                return $parameter->getName();
            }, $reflectionMethod->getParameters());

            $parameters = $request->attributes->all();
            foreach ($parameters as $paramName => $paramValue) {
                if (!in_array($paramName, $controllerParameters)) {
                    $queryParams[$paramName] = $paramValue;
                }
            }

            $request->query->add($queryParams);
        }
    }