}
@RequestMapping(value = "{identifier}/delete", method = RequestMethod.POST)
public String formDelete(@ModelAttribute("contact") ContactEntry contact, BindingResult bindingResult) {
if (!bindingResult.hasErrors()) {
RemoveContactCommand command = new RemoveContactCommand();
command.setContactId(contact.getIdentifier());
commandBus.dispatch(new GenericCommandMessage<Object>(command));
return "redirect:/contacts";
}
return "contacts/delete";