public function getPermission($name)
    {
        if ($this->hasPermission($name)) {
            return $this->permissions[$name];
        }

        throw new \InvalidArgumentException(sprintf('No permission with name "%s" could be found', $name));
    }