class RegistryParseUtil {

    /**
     * Parse address string.
     *
     * @param config the config 
     * @param protocol the protocol 
     * @return the string
     */
    public static String parseAddress(String config, String protocol) {
        String address = null;

        if (StringUtils.isNotEmpty(config) && config.startsWith(protocol)) {
            final String nacosProtocol = protocol + "://";
            String value = config.substring(nacosProtocol.length());
            if (!value.contains("?")) {
                address = value;
            } else {
                int index = value.lastIndexOf('?');
                address = value.substring(0, index);
            }
        }

        return address;
    }

    /**
     * Parse param map.
     *
     * @param address the address 
     * @param protocol the protocol 
     * @return the map
     */
    public static Map<String, String> parseParam(String address, String protocol) {<FILL_FUNCTION_BODY>}

    /**
     * Parse key value map.
     *
     * @param kv the kv 
     * @return the map
     */
    public static Map<String, String> parseKeyValue(String kv) {
        Map<String, String> map = new HashMap<String, String>();
        if (StringUtils.isNotEmpty(kv)) {
            String[] kvSplit = kv.split("=");
            String key = kvSplit[0];
            String value = kvSplit[1];
            map.put(key, value);
        }
        return map;
    }
}


        String host = parseAddress(address, protocol);

        //for config ?
        String paramString = address.substring(address.indexOf(host) + host.length());

        if (StringUtils.isNotEmpty(paramString) && paramString.startsWith("?")) {
            paramString = paramString.substring(1);
        }

        Map<String, String> map = new HashMap<String, String>();
        if (paramString.contains("&")) {
            String[] paramSplit = paramString.split("&");
            for (String param : paramSplit) {
                Map<String, String> tempMap = parseKeyValue(param);
                map.putAll(tempMap);
            }
        } else {
            Map<String, String> tempMap = parseKeyValue(paramString);
            map.putAll(tempMap);
        }

        return map;
    
<no_super_class>