private static Optional<Topic> findTopicByName(final List<Topic> allTopics, final String topicName) {
        return allTopics
            .stream()
            .filter(topic -> topic.getName().contains(topicName))
            .findFirst();
    }
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