private static DistributedCacheObject getCacheObject(final RegisteredService service,
                                                         final ApplicationEvent event,
                                                         final PublisherIdentifier publisherId) {
        return DistributedCacheObject.<RegisteredService>builder()
            .value(service)
            .publisherIdentifier(publisherId)
            .properties(CollectionUtils.wrap("event", event.getClass().getSimpleName()))
            .build();
    }
This is {@link DefaultCasRegisteredServiceStreamPublisher}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/publisher/DefaultCasRegisteredServiceStreamPublisher.java