@PostMapping(value = "/owners/new")
    public String processCreationForm(@Valid Owner owner, BindingResult result) {
        if (result.hasErrors()) {
            return VIEWS_OWNER_CREATE_OR_UPDATE_FORM;
        }

        this.clinicService.saveOwner(owner);
        return "redirect:/owners/" + owner.getId();
    }
@author Juergen Hoeller
@author Ken Krebs
@author Arjen Poutsma
@author Michael Isvy
src/main/java/org/springframework/samples/petclinic/web/OwnerController.java