protected function getDataTablesURL(DataTablesProviderInterface $dtProvider) {

        $this->getLogger()->debug(sprintf("DataTables controller search for an URL with name \"%s\"", $dtProvider->getName()));

        if (false === ($dtProvider instanceof DataTablesRouterInterface)) {
            return $this->getRouter()->generate("jquery_datatables_index", ["name" => $dtProvider->getName()]);
        }

        $this->getLogger()->debug(sprintf("DataTables controller found for an URL with name \"%s\"", $dtProvider->getName()));

        return $dtProvider->getUrl();
    }