public function updateRole(Role $role, $oldName = null)
    {
        $url = self::makeUrl($role->tenantId, $oldName);
        $this->service->prepAndSend($url, array(200, 201), 'PUT', json_encode($role), false, 'application/json', 'application/json');
    }