public static function controller(AssetModel $asset)
    {
        $namespace = 'BoomCMS\Http\Controllers\ViewAsset\\';

        if (!$asset->getExtension()) {
            return;
        }

        $byExtension = $namespace.ucfirst($asset->getExtension());
        if (class_exists($byExtension)) {
            return $byExtension;
        }

        $byType = $namespace.ucfirst($asset->getType());
        if (class_exists($byType)) {
            return $byType;
        }

        return $namespace.'BaseController';
    }