protected function encodeName()
    {
        $name = $this->getProvider();

        if ($this->getVariant()) {
            $name .= '.' . $this->getVariant();

            return $name;
        }

        return $name;
    }