public function paginate()
    {
        try {
            $this->query = $this->query->paginate($this->getPaginationConfig());
        } catch (\Exception $e) {
            throw new QueryException($e);
        }
    }