class DefaultGlobalConfig implements GlobalConfig {
    private final ConcurrentHashMap<String, String> configs = new ConcurrentHashMap<>();

    public DefaultGlobalConfig() {
        Map<String, String> defaultConfigs = MotanGlobalConfigUtil.getDefaultConfigCopy();
        if (!defaultConfigs.isEmpty()) {
            putConfigs(defaultConfigs, false);
        }
    }

    @Override
    public String getConfig(String key) {
        return configs.get(key);
    }

    @Override
    public String getConfig(String key, String defaultValue) {
        String value = configs.get(key);
        return value == null ? defaultValue : value;
    }

    @Override
    public void putConfig(String key, String value) {
        configs.put(key, value);
    }

    @Override
    public String remove(String key) {
        return configs.remove(key);
    }

    @Override
    public void putConfigs(Map<String, String> configs, boolean override) {<FILL_FUNCTION_BODY>}

    @Override
    public ConcurrentHashMap<String, String> getConfigs() {
        return configs;
    }
}

        if (configs != null && !configs.isEmpty()) {
            for (Map.Entry<String, String> entry : configs.entrySet()) {
                if (override) {
                    this.configs.put(entry.getKey(), entry.getValue());
                } else {
                    this.configs.putIfAbsent(entry.getKey(), entry.getValue());
                }
            }
        }
    
<no_super_class>