private function voteForNestedNode(TokenInterface $token, AbstractNestedNode $node, array $attributes)
    {
        if (self::ACCESS_DENIED === $result = $this->voteForObject($token, $node, $attributes)) {
            if (null !== $node->getParent()) {
                $result = $this->voteForNestedNode($token, $node->getParent(), $attributes);
            }
        }

        return $result;
    }