public function isGranted($attributes, $object = null,
                              $catchException = true)
    {
        try {
            return $this->app['security.authorization_checker']->isGranted($attributes, $object);
        } catch (AuthenticationCredentialsNotFoundException $e) {
            if ($catchException) {
                return false;
            }
            throw $e;
        }
    }