long version = params.version.toLong()
if (person.version > version) {
person.errors.rejectValue ‚version‘, „person.optimistic.locking.failure“,
„Another user has updated this User while you were editing.“
render view: ‚edit‘, model: buildPersonModel(person)
return
}