protected function getModelSlugForRouteNameSegment($nameSegment)
    {
        $dotPosition = strpos($nameSegment, '.');

        if (false === $dotPosition) {
            return $nameSegment;
        }

        return substr($nameSegment, 0, $dotPosition);
    }