protected function isSecurityGranted($attributes, $object = null)
    {
        if (null === $this->getSecurityContext()->getToken())
        {
            return false;
        }

        return $this->getSecurityContext()->isGranted($attributes, $object);
    }