private static Subscriber subscribeToTopic(final QueueableTicketRegistryMessageReceiver messageQueueTicketRegistryReceiver,
                                               final PubSubTemplate pubSubTemplate,
                                               final Topic topic,
                                               final Subscription subscription,
                                               final PubSubMessageConverter messageQueueTicketRegistryConverter) {
        val messageConsumer = new GoogleCloudTicketRegistryMessageQueueConsumer(topic, subscription,
            messageQueueTicketRegistryReceiver, messageQueueTicketRegistryConverter);
        return pubSubTemplate.subscribe(subscription.getName(), messageConsumer);
    }
This is {@link CasGoogleCloudPubSubTicketRegistryAutoConfiguration}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-gcp-pubsub-ticket-registry/src/main/java/org/apereo/cas/config/CasGoogleCloudPubSubTicketRegistryAutoConfiguration.java