// ----- ViewController ----------------------------------------------------
@Override
public void fireEvent(String eventId, Map<String, String> eventProperties) {
Event event = viewInstanceEntity == null ?
new EventImpl(eventId, eventProperties, viewEntity) :
new EventImpl(eventId, eventProperties, viewInstanceEntity);
viewRegistry.fireEvent(event);
}