protected function validateInitializer()
    {
        if ($this->renderer === null) {
            $settingsInstance = $this->getSettingsInstance();

            if ($this->type === static::TYPE_EXCEL) {
                $initializerClass = $settingsInstance->getDefaultExcelInitializerClass();
            } elseif ($this->type === static::TYPE_PDF) {
                $initializerClass = $settingsInstance->getDefaultPDFInitializerClass();
            } else {
                $initializerClass = $settingsInstance->getDefaultInitializerClass();
            }

            $this->initializer = new $initializerClass;
        }
    }