@Override
    public void onEvent(Event event) {
        if (handlers.containsKey(event.getType())) {
            IEventProcessorFactory handler = handlers.get(event.getType());
            LOGGER.debugv("Invoking a handler {0} for event: {1}", handler, event);
            handler.onEvent(session, event);
        }
    }
Accept Keycloak event and then if a handler exists for that event type, invoke it.
sso/keycloak/extensions/src/main/java/io/apiman/manager/sso/keycloak/event/ApimanEventListenerProvider.java