public void notifyListeners(final InteractionEvent interactionEvent) {
final InteractionEventDispatcher dispatcher = dispatchersByEventClass.get(interactionEvent.getClass());
if (dispatcher == null) {
throw new RuntimeException("Unknown InteractionEvent - register into dispatchers map");
}
dispatcher.dispatch(interactionEvent);
}
// /////////////////////////////////////////////////////////////
// Listeners
// /////////////////////////////////////////////////////////////