protected function createHandler($query, $builder = null)
    {
        $handler = new Handler($this->request, $this->config);

        $handler->setQuery($query);

        if (! is_null($builder)) {
            $handler->setBuilder($builder);
        }

        return $handler;
    }