setName of the resource now has a boolean to indicate if the url also shoud be changed