public function setQueryBuilderInitializer(\Closure $initializer = null)
    {
        if (!is_null($initializer)) {
            $this->validateQueryBuilderInitializer($initializer);
        }

        $this->queryBuilderInitializer = $initializer;

        return $this;
    }