public void publishEvent(final ApplicationEvent event) {
        if (applicationContext != null) {
            LOGGER.trace("Publishing event [{}]", event);
            applicationContext.publishEvent(event);
        }
    }
Publish event.

@param event the event
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/AbstractServiceRegistry.java