@EventHandler
public void handleAddressCreatedEvent(AddressRegisteredEvent event) {
logger.debug("Received a address created event with type {} for contactId {}",
event.getType().toString(), event.getContactId());
ContactEntry contactEntry = obtainContactByIdentifier(event.getContactId());
AddressEntry value = new AddressEntry();
value.setIdentifier(event.getContactId());
value.setName(contactEntry.getName());
value.setAddressType(event.getType());
value.setStreetAndNumber(event.getAddress().getStreetAndNumber());
value.setZipCode(event.getAddress().getZipCode());
value.setCity(event.getAddress().getCity());
publisher.publish(new Message<AddressEntry>("address-created", value));
}