returns the same resource with a new ID if there is no current ID
@override Resource newIdIfNoId() => id == null ? newId() : this;