@Override
    public Optional<DiscoveryStrategyConfig> get(final HazelcastClusterProperties cluster, final JoinConfig joinConfig,
                                                 final Config configuration, final NetworkConfig networkConfig) {
        val zk = cluster.getDiscovery().getZookeeper();
        val properties = new HashMap<String, Comparable>();
        properties.put(ZookeeperDiscoveryProperties.ZOOKEEPER_URL.key(), zk.getUrl());
        properties.put(ZookeeperDiscoveryProperties.ZOOKEEPER_PATH.key(), zk.getPath());
        properties.put(ZookeeperDiscoveryProperties.GROUP.key(), zk.getGroup());
        return Optional.of(new DiscoveryStrategyConfig(new ZookeeperDiscoveryStrategyFactory(), properties));
    }
This is {@link HazelcastZooKeeperDiscoveryStrategy}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-hazelcast-discovery-zookeeper/src/main/java/org/apereo/cas/zookeeper/HazelcastZooKeeperDiscoveryStrategy.java