public function getFailRouteName()
    {
        if($this->group->hasFailRoute())
            return $this->group->getFailRoute();

        $group = $this->group;

        while($route = $group->getUpperRoute())
        {
            /** @var Group $group */
            $group = $route->getGroup();

            if($group->hasFailRoute())
                return $group->getFailRoute();
        }

        return null;
    }