* if the type or identifier are not provided
*/
@RequestMapping(value = "{identifier}/address", method = RequestMethod.DELETE)
public void deleteAddress(@RequestBody AddressEntry address) throws MissingServletRequestParameterException {
if (!StringUtils.hasText(address.getIdentifier())) {
throw new MissingServletRequestParameterException("identifier", "String");
}
if (null == address.getAddressType()) {
throw new MissingServletRequestParameterException("addressType", "PRIVATE,WORK,VACATION");
}
RemoveAddressCommand command = new RemoveAddressCommand();
command.setContactId(address.getIdentifier());
command.setAddressType(address.getAddressType());
commandBus.dispatch(new GenericCommandMessage<Object>(command));