class NacosConfig {
    public static Properties getServiceProperties(CloudProps cloudProps, Properties properties, String server) {<FILL_FUNCTION_BODY>}
}

        String username = cloudProps.getUsername();
        String password = cloudProps.getPassword();

        Props parentProps = cloudProps.getProp();
        parentProps.forEach((k,v)->{
            if(k instanceof String){
                String key = (String) k;

                if(key.startsWith(CloudProps.PREFIX_config) ||
                        key.startsWith(CloudProps.PREFIX_discovery)){
                    return;
                }

                properties.putIfAbsent(key, v);
            }
        });


        properties.putIfAbsent(PropertyKeyConst.SERVER_ADDR, server);

        if (Utils.isNotEmpty(username)) {
            properties.putIfAbsent(PropertyKeyConst.USERNAME, username);
        }

        if (Utils.isNotEmpty(password)) {
            properties.putIfAbsent(PropertyKeyConst.PASSWORD, password);
        }

        if (Utils.isNotEmpty(Solon.cfg().appNamespace())) {
            properties.putIfAbsent(PropertyKeyConst.NAMESPACE, Solon.cfg().appNamespace());
        }

        return properties;
    
<no_super_class>