protected function findItem($name)
    {
        $item = $this->authManager->getRole($name);

        if ($item instanceof Role) {
            return $item;
        }

        $item = $this->authManager->getPermission($name);

        if ($item instanceof Permission) {
            return $item;
        }

        return null;
    }