private void typeCheck(Event event) {
        if (!event.getType().equals(EventType.REGISTER)) {
            String msg = MessageFormat.format("Expected to process {0} but got {1}", EventType.REGISTER,
                 event.getType());
            throw new IllegalArgumentException(msg);
        }
    }
@author Marc Savy {@literal <marc@blackparrotlabs.io>}
sso/keycloak/extensions/src/main/java/io/apiman/manager/sso/keycloak/event/processors/NewUserEventProcessorFactory.java