public function setName($name)
    {
        if ($this->getObjectId())
        {
            throw new AVException("A role's name can only be set before it has been saved.");
        }
        if (!is_string($name))
        {
            throw new AVException("A role's name must be a string.");
        }

        return $this->set("name", $name);
    }