public function onBuildContextConfig(BuildContextConfig $command): void
    {
        $context = $command->getContext();
        if (!$context instanceof ThemeContext) {
            return;
        }

        $theme = ThemeModel::findByPk($context->getThemeId());
        if (!$theme) {
            return;
        }


        $templateConfig = [];
        $templateConfig = $this->buildGravatarConfig($theme, $templateConfig);
        $templateConfig = $this->buildTemplateMappingConfig($theme, $templateConfig);

        if (count($templateConfig) > 0) {
            $config = $command->getConfig()->merge(
                [
                    'templates' => $templateConfig
                ]
            );

            $command->setConfig($config);
        }
    }