public function exportAction(Request $request, $name) {

        $windows = DataTablesExportHelper::isWindows($request);

        $dtProvider = $this->getDataTablesProvider($name);

        $dtExporter = $this->getDataTablesCSVExporter($dtProvider);

        $repository = $this->getDataTablesRepository($dtProvider);

        $filename = (new DateTime())->format("Y.m.d-H.i.s") . "-" . $dtProvider->getName() . ".csv";

        $charset = true === $windows ? "iso-8859-1" : "utf-8";

        $response = new StreamedResponse();
        $response->headers->set("Content-Disposition", "attachment; filename=\"" . $filename . "\"");
        $response->headers->set("Content-Type", "text/csv; charset=" . $charset);
        $response->setCallback(function() use ($dtProvider, $repository, $dtExporter, $windows) {
            $this->exportDataTablesCallback($dtProvider, $repository, $dtExporter, $windows);
        });
        $response->setStatusCode(200);

        return $response;
    }