public static void setConfigMap(final NamedConfig namedConfig, final Config config) {
        if (namedConfig instanceof final MapConfig mappedConfig) {
            FunctionUtils.doIf(!config.getMapConfigs().containsKey(namedConfig.getName()),
                __ -> config.addMapConfig(mappedConfig)).accept(mappedConfig);
        } else if (namedConfig instanceof final ReplicatedMapConfig replicatedConfig) {
            FunctionUtils.doIf(!config.getReliableTopicConfigs().containsKey(namedConfig.getName()),
                __ -> config.addReplicatedMapConfig(replicatedConfig)).accept(replicatedConfig);
        }
    }
Sets config map.

@param namedConfig the map config
@param config      the config
support/cas-server-support-hazelcast-core/src/main/java/org/apereo/cas/hz/HazelcastConfigurationFactory.java