@RequestMapping(value = "{identifier}/address/delete/{addressType}", method = RequestMethod.POST)
public String formDeleteAddressSubmit(@ModelAttribute("address") AddressEntry address, BindingResult bindingResult) {
if (!bindingResult.hasErrors()) {
RemoveAddressCommand command = new RemoveAddressCommand();
command.setContactId(address.getIdentifier());
command.setAddressType(address.getAddressType());
commandBus.dispatch(new GenericCommandMessage<Object>(command));
return "redirect:/contacts/" + address.getIdentifier();
}
return "contacts/removeAddress";