* @param type AddressType of the address to add or change
* @param address Address to add or change
*/
public void registerAddress(AddressType type, Address address) {
if (addresses.containsKey(type)) {
apply(new AddressChangedEvent(id, type, address));
} else {
apply(new AddressAddedEvent(id, type, address));
}
}