public function download($fileClass, $q)
    {
        try {
            $file = $this->handlers[$fileClass]->__invoke(new FileOfIdQuery($q));
            $filename = $file['file_name'];
        } catch (FileDoesNotExistException $exception) {
            $filename = $q;
        }

        return $this->urlGenerator->generate(
            'bengor_file_' . $fileClass . '_download',
            ['filename' => $filename],
            UrlGeneratorInterface::ABSOLUTE_URL
        );
    }