Compare these two Artifacts.cue files and summarize and provide examples of the refactoring

<old>
package mcm
import mcm "tttech-auto.com/motionwise/schemas:mcm"
system: mcm.#system

system: {
    ecus: {
        for ECU, hostgroup in ECUs_and_Hosts_map {
            "\(ECU)": {
                // Host level artifacts
                hosts: {
                    for hostname, shortname in hostgroup {
                        "\(hostname)" : {
                            artifacts : {
                                if shortname =~ "SH[0-9]+" {
                                    "1700_-_Rte_-_TTTech_Rte_ASR": {
                                        uri: "mxml:1700_-_Rte_-_TTTech_Rte_ASR"
                                        visibility: "internal"
                                        locations: [
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                pattern: "Rte_[cp_swc]/*.c"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                pattern: "Rte_[cp_swc]/*.h"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                pattern: "Rte_Const/*.c"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                pattern: "Rte_Const/*.h"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                pattern: "ipm/*.c"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                pattern: "ipm/*.h"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/Rte_XCP"
                                                pattern: "*.h"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/Rte_XCP"
                                                pattern: "*.c"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/"
                                                pattern: "Rte_*.c"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/"
                                                pattern: "Rte_*.h"
                                            },
                                        ]
                                    }
                                    "1700_-_Build_-_Rte_TTTech_ASR": {
                                        uri: "mxml:1700_-_Build_-_Rte_TTTech_ASR"
                                        visibility: "internal"
                                        locations: [
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_TTTech"
                                            },
                                        ]
                                        exclude_locations: [
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_TTTech"
                                                pattern: "*.unit"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_TTTech"
                                                pattern: "SWC_list.xml"
                                                },
                                        ]
                                    }
                                    "1700_-_Mbu_-_Mbu_Data_ASR": {
                                        uri: "mxml:1700_-_Mbu_-_Mbu_Data_ASR"
                                        visibility: "internal"
                                        locations: [
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu/\(shortname)"
                                                pattern: "Mbu_*/*.c"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu/\(shortname)"
                                                pattern: "Mbu_*/*.h"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu/\(shortname)"
                                                pattern: "Rte_MemLayout.h"
                                            },
                                        ]
                                    }
                                    "1700_-_Build_-_Mbu_Data_ASR": {
                                        uri: "mxml:1700_-_Build_-_Mbu_Data_ASR"
                                        visibility: "internal"
                                        locations: [
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Mbu"
                                            },
                                        ]
                                        exclude_locations: [
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Mbu"
                                                pattern: "*.unit"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Mbu"
                                                pattern: "SWC_list.xml"
                                                },
                                        ]
                                    }
                                    "1700_-_Rte_-_Contract_Headers_ASR": {
                                        uri: "mxml:1700_-_Rte_-_Contract_Headers_ASR"
                                        visibility: "internal"
                                        locations: [
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_CH"
                                            },
                                        ]
                                        exclude_locations: [
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_CH"
                                                pattern: "*.unit"
                                            },
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_CH"
                                                pattern: "SWC_list.xml"
                                                },
                                        ]
                                    }
                                    "1700_-_SWU_-_RA_Implementation_ASR": {
                                        uri: "mcl:1700_-_SWU_-_RA_Implementation_ASR"
                                        visibility: "internal"
                                        locations: [
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/SDK/SWU_RA/\(shortname)"
                                                pattern: ""
                                            },
                                        ]
                                    }
                                }
                                // Generate artifacts below only for PerformanceHosts with BC_CLASSIC_PLATFORM build cap enabled
                                if shortname =~ "PH[0-9]+" {
                                    if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                        if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                            "1700_-_Rte_-_TTTech_Rte_POSIX": {
                                                uri: "mxml:1700_-_Rte_-_TTTech_Rte_POSIX"
                                                visibility: "internal"
                                                locations: [
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                        pattern: "Rte_[cp_swc]/*.c"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                        pattern: "Rte_[cp_swc]/*.h"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                        pattern: "Rte_Const/*.c"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                        pattern: "Rte_Const/*.h"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                        pattern: "ipm/*.c"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                        pattern: "ipm/*.h"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/Rte_XCP"
                                                        pattern: "*.h"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/Rte_XCP"
                                                        pattern: "*.c"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/"
                                                        pattern: "Rte_*.c"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/"
                                                        pattern: "Rte_*.h"
                                                    },
                                                ]
                                            }
                                            "1700_-_Build_-_Rte_TTTech_POSIX": {
                                                uri: "mxml:1700_-_Build_-_Rte_TTTech_POSIX"
                                                visibility: "internal"
                                                locations: [
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_TTTech"
                                                        pattern: "**"
                                                    },
                                                ]
                                                exclude_locations: [
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_TTTech"
                                                        pattern: "*.unit"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_TTTech"
                                                        pattern: "SWC_list.xml"
                                                    },
                                                ]
                                            }
                                            "1700_-_Mbu_-_Mbu_Data_POSIX": {
                                                uri: "mxml:1700_-_Mbu_-_Mbu_Data_POSIX"
                                                visibility: "internal"
                                                locations: [
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu/\(shortname)"
                                                        pattern: "Mbu_*/*.c"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu/\(shortname)"
                                                        pattern: "Mbu_*/*.h"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu/\(shortname)"
                                                        pattern: "Rte_MemLayout.h"
                                                    },
                                                ]
                                            }
                                            "1700_-_Build_-_Mbu_Data_POSIX": {
                                                uri: "mxml:1700_-_Build_-_Mbu_Data_POSIX"
                                                visibility: "internal"
                                                locations: [
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Mbu"
                                                        pattern: "**"
                                                    },
                                                ]
                                                exclude_locations: [
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Mbu"
                                                        pattern: "*.unit"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Mbu"
                                                        pattern: "SWC_list.xml"
                                                    },
                                                ]
                                            }
                                            "1700_-_Rte_-_Contract_Headers_POSIX": {
                                                uri: "mxml:1700_-_Rte_-_Contract_Headers_POSIX"
                                                visibility: "internal"
                                                locations: [
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_CH"
                                                        pattern: "**"
                                                    },
                                                ]
                                                exclude_locations: [
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_CH"
                                                        pattern: "*.unit"
                                                    },
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_CH"
                                                        pattern: "SWC_list.xml"
                                                    },
                                                ]
                                            }
                                            "1700_-_SWU_-_RA_Implementation_POSIX": {
                                                uri: "mcl:1700_-_SWU_-_RA_Implementation_POSIX"
                                                visibility: "internal"
                                                locations: [
                                                    {
                                                        path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/SDK/SWU_RA/\(shortname)"
                                                        pattern: ""
                                                    },
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                // ECU-level artifacts
                artifacts : {
                    "1700_Rte_Modes_SWCP": {
                        uri: "mcl:1700_Rte_Modes_SWCP"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Rte_TTTech/Rte_[cp_swc]/Rte_Modes_[cp_swc].c"
                            }
                        ]
                    }
                    "1700_Rte_MBD_SWCP": {
                        uri: "mcl:1700_Rte_MBD_SWCP"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Rte_TTTech/Rte_[cp_swc]/Rte_MBD_[cp_swc].c"
                            }
                        ]
                    }
                    "1700_Rte_MBD_IPM_INC": {
                        uri: "mcl:1700_Rte_MBD_IPM_INC"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Rte_TTTech/ipm/mbd/RteMw_MBD_IsProducerMuted_[host].h"
                            }
                        ]
                    }
                    "1700_Rte_MBD_IPM_SRC": {
                        uri: "mcl:1700_Rte_MBD_IPM_SRC"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Rte_TTTech/ipm/mbd/RteMw_MBD_IsProducerMuted_[host].c"
                            }
                        ]
                    }
                    "1700_Rte_MS_arxmls": {
                        uri: "mcl:1700_Rte_MS_arxmls"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Rte_TTTech/Rte_MS_[host].arxml"
                            }
                        ]
                    }
                    "1700_-_Rte_-_SimulatedPage": {
                        uri: "mxml:1700_-_Rte_-_SimulatedPage"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/Simulated_Page/"
                                pattern: "Rte_Simulated_Page.c"
                            },
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/Simulated_Page/"
                                pattern: "Rte_Simulated_Page.h"
                            },
                        ]
                    }
                    "1700_-_Rte_-_Srv_Stubs": {
                        uri: "mxml:1700_-_Rte_-_Srv_Stubs"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/Srv_Stubs"
                                pattern: "**/*.c"
                            },
                        ]
                    }
                    "1700_-_Rte_-_Rte_ExtProfileID": {
                        uri: "mxml:1700_-_Rte_-_Rte_ExtProfileID"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/Rte_ExtProfileID"
                                pattern: "Rte_ExtProfileID.h"
                            },
                        ]
                    }
                    "1700_-_Core_-_Implementation_Templates_Global": {
                        uri: "mxml:1700_-_Core_-_Implementation_Templates_Global"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Implementation_Templates/[swc].c"
                            },
                        ]
                    }
                    "1700_-_Core_-_Implementation_Templates_Load_Stubs": {
                        uri: "mxml:1700_-_Core_-_Implementation_Templates_Load_Stubs"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Implementation_Templates_Load_Stubs/[swc].c"
                            },
                        ]
                    }
                    "1700_-_Rte_-_TTTech_Rte": {
                        uri: "mxml:1700_-_Rte_-_TTTech_Rte"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."1700_-_Rte_-_TTTech_Rte_ASR",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."1700_-_Rte_-_TTTech_Rte_POSIX",
                                }
                            }
                        ]
                    }
                    "1700_-_Build_-_Rte_TTTech": {
                        uri: "mxml:1700_-_Build_-_Rte_TTTech"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."1700_-_Build_-_Rte_TTTech_ASR",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."1700_-_Build_-_Rte_TTTech_POSIX",
                                }
                            }
                        ]
                    }
                    "1700_-_Build_-_Rte_SWU": {
                        uri: "mxml:1700_-_Build_-_Rte_SWU"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."swu_host_arxml",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."swu_host_arxml",
                                }
                            }
                        ]
                    }
                    "1700_-_Mbu_-_Mbu_Data": {
                        uri: "mxml:1700_-_Mbu_-_Mbu_Data"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."1700_-_Mbu_-_Mbu_Data_ASR",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."1700_-_Mbu_-_Mbu_Data_POSIX",
                                }
                            }
                        ]
                    }
                    "1700_-_Build_-_Mbu_Data": {
                        uri: "mxml:1700_-_Build_-_Mbu_Data"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."1700_-_Build_-_Mbu_Data_ASR",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."1700_-_Build_-_Mbu_Data_POSIX",
                                }
                            }
                        ]
                    }
                    "1700_-_Build_-_Rte_-_Contract_Headers": {
                        uri: "mxml:1700_-_Build_-_Rte_-_Contract_Headers"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."1700_-_Rte_-_Contract_Headers_ASR",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."1700_-_Rte_-_Contract_Headers_POSIX",
                                }
                            }
                        ]
                    }
                    if system.build_config.build_caps["BC_RTE_CS"] != _|_ {
                        "1700_-_Core_-_Stack_Adapter_OperationInvokedEvent_RList": {
                            uri: "mcl:1700_-_Core_-_Stack_Adapter_OperationInvokedEvent_RList"
                            visibility: "internal"
                            locations: [
                                {
                                    path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/rws/deviations"
                                    pattern: "Stack_Adapter_OperationInvokedEvent_RList.json"
                                }
                            ]
                        }
                    }

                    if system.build_config.build_caps["BC_RTE_CS"] != _|_ {
                        "1700_-_Core_-_Stack_Adapter_ServerCallPoint_RList": {
                            uri: "mcl:1700_-_Core_-_Stack_Adapter_ServerCallPoint_RList"
                            visibility: "internal"
                            locations: [
                                {
                                    path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/rws/deviations"
                                    pattern: "Stack_Adapter_ServerCallPoint_RList.json"
                                }
                            ]
                        }
                    }

                    "1700_-_Core_-_Stack_Adapter_SR_Receive_RList": {
                        uri: "mcl:1700_-_Core_-_Stack_Adapter_SR_Receive_RList"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/rws/deviations"
                                pattern: "Stack_Adapter_SR_Receive_RList.json"
                            }
                        ]
                    }
                    "1700_-_Core_-_Stack_Adapter_SR_Send_RList": {
                        uri: "mcl:1700_-_Core_-_Stack_Adapter_SR_Send_RList"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/rws/deviations"
                                pattern: "Stack_Adapter_SR_Send_RList.json"
                            }
                        ]
                    }
                    "1700_-_SWU_-_Remote_Access_Main_Unit": {
                        uri: "mcl:1700_-_SWU_-_Remote_Access_Main_Unit"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/SDK/RA"
                                pattern: "Swu_Ra.unit"
                            },
                        ]
                    }
                    "1700_-_SWU_-_Remote_Access_Implementation": {
                        uri: "mcl:1700_-_SWU_-_Remote_Access_Implementation"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."1700_-_SWU_-_RA_Implementation_ASR",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."1700_-_SWU_-_RA_Implementation_POSIX",
                                }
                            }
                        ]
                    }
                    "1700_-_SWU_-_Remote_Access_Gtests": {
                        uri: "mcl:1700_-_SWU_-_Remote_Access_Gtests"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/SDK/SWU_RA/gtest"
                                pattern: "**"
                            },
                        ]
                    }
                }
            }
        }
    }
}
</old>

<new>

package mcm
import mcm "tttech-auto.com/motionwise/schemas:mcm"
system: mcm.#system

system: {
    ecus: {
        for ECU, hostgroup in ECUs_and_Hosts_map {
            "\(ECU)": {
                // Host level artifacts
                hosts: {
                    for hostname, shortname in hostgroup {
                        "\(hostname)" : {
                            artifacts : {
                                // Common artifacts (ASR and POSIX)
                                "ra_client_header_common": {
                                    uri: "mcl:ra_client_header_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/SDK/SWU_RA/\(shortname)"
                                            pattern: "Ra_Swu_Client_\(shortname).h"
                                        }
                                    ]
                                },
                                "ra_server_header_common": {
                                    uri: "mcl:ra_server_header_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/SDK/SWU_RA/\(shortname)"
                                            pattern: "Ra_Swu_Server_\(shortname).h"
                                        }
                                    ]
                                },
                                "ra_source_common": {
                                    uri: "mcl:ra_source_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/SDK/SWU_RA/\(shortname)"
                                            pattern: "Ra_Swu_\(shortname).c"
                                        }
                                    ]
                                },
                                "sw_units_common": {
                                    uri: "mcl:sw_units_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)"
                                            pattern: "Rte_TTTech/SW_Units.xml"
                                        }
                                    ]
                                },
                                "swc_list_rte_tttech_common": {
                                    uri: "mcl:swc_list_rte_tttech_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)"
                                            pattern: "Rte_TTTech/SWC_list.xml"
                                        }
                                    ]
                                },
                                "swc_list_mbu_common": {
                                    uri: "mcl:swc_list_mbu_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)"
                                            pattern: "Mbu/SWC_list.xml"
                                        }
                                    ]
                                },
                                "swc_list_rte_ch_common": {
                                    uri: "mcl:swc_list_rte_ch_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)"
                                            pattern: "Rte_CH/SWC_list.xml"
                                        }
                                    ]
                                },
                                "swc_unit_files_rte_tttech_common": {
                                    uri: "mcl:swc_unit_files_rte_tttech_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)"
                                            pattern: "Rte_TTTech/Rte_TTTech_[cp_swc].unit"
                                        }
                                    ]
                                },
                                "swc_unit_files_mbu_common": {
                                    uri: "mcl:swc_unit_files_mbu_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)"
                                            pattern: "Mbu/Mbu_[cp_swc].unit"
                                        }
                                    ]
                                },
                                "swc_unit_files_rte_ch_common": {
                                    uri: "mcl:swc_unit_files_rte_ch_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)"
                                            pattern: "Rte_CH/Rte_CH_[cp_swc].unit"
                                        }
                                    ]
                                },
                                "rte_xcp_common": {
                                    uri: "mcl:rte_xcp_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/Rte_XCP"
                                        }
                                    ]
                                },
                                "rte_xcp_h_common": {
                                    uri: "mcl:rte_xcp_h_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/Rte_XCP"
                                            pattern: "Rte_XCP_\(shortname).h"
                                        }
                                    ]
                                },
                                "rte_c_no_model_common": {
                                    uri: "mcl:rte_c_no_model_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                            pattern: "Rte_[swc].c"
                                        }
                                    ]
                                },
                                "rte_const_c_common": {
                                    uri: "mcl:rte_const_c_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/Rte_Const"
                                            pattern: "Rte_Const.c"
                                        }
                                    ]
                                },
                                "rte_const_h_common": {
                                    uri: "mcl:rte_const_h_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/Rte_Const"
                                            pattern: "Rte_Const.h"
                                        }
                                    ]
                                },
                                "rte_const_unit_common": {
                                    uri: "mcl:rte_const_unit_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_TTTech"
                                            pattern: "Rte_Const.unit"
                                        }
                                    ]
                                },
                                "rte_internal_h_common": {
                                    uri: "mcl:rte_internal_h_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                            pattern: "Rte_[cp_swc]/Rte_[cp_swc]_Internal.h"
                                        }
                                    ]
                                },
                                "rte_memlayout_common": {
                                    uri: "mcl:rte_memlayout_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu/\(shortname)"
                                            pattern: "Rte_MemLayout.h"
                                        }
                                    ]
                                },
                                "rte_c_common": {
                                    uri: "mcl:rte_c_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                            pattern: "Rte_[cp_swc]/Rte_[cp_swc].c"
                                        }
                                    ]
                                },
                                "mbu_data_c_common": {
                                    uri: "mcl:mbu_data_c_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu/\(shortname)"
                                            pattern: "Mbu_[cp_swc]/Mbu_[cp_swc]_Data.c"
                                        }
                                    ]
                                },
                                "mbu_data_h_common": {
                                    uri: "mcl:mbu_data_h_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu/\(shortname)"
                                            pattern: "Mbu_[cp_swc]/Mbu_[cp_swc]_Data.h"
                                        }
                                    ]
                                },
                                "mbu_cpap_middleware_asil_c_common": {
                                    uri: "mcl:mbu_cpap_middleware_asil_c_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu/\(shortname)/Mbu_CpApMiddlewareASIL_\(shortname)"
                                            pattern: "Mbu_CpApMiddlewareASIL_\(shortname)_Data.c"
                                        }
                                    ]
                                },
                                "mbu_cpap_middleware_asil_h_common": {
                                    uri: "mcl:mbu_cpap_middleware_asil_h_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu/\(shortname)/Mbu_CpApMiddlewareASIL_\(shortname)"
                                            pattern: "Mbu_CpApMiddlewareASIL_\(shortname)_Data.h"
                                        }
                                    ]
                                },
                                "rte_cpap_middleware_asil_c_common": {
                                    uri: "mcl:rte_cpap_middleware_asil_c_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/Rte_CpApMiddlewareASIL_\(shortname)"
                                            pattern: "Rte_CpApMiddlewareASIL_\(shortname)_Init.c"
                                        }
                                    ]
                                },
                                "rte_cpap_middleware_asil_swc_c_common": {
                                    uri: "mcl:rte_cpap_middleware_asil_swc_c_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/Rte_CpApMiddlewareASIL_\(shortname)"
                                            pattern: "Rte_CpApMiddlewareASIL_\(shortname)_[cp_swc].c"
                                        }
                                    ]
                                },
                                "is_producer_muted_c_common": {
                                    uri: "mcl:is_producer_muted_c_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/ipm"
                                            pattern: "RteMw_IsProducerMuted_\(shortname).c"
                                        }
                                    ]
                                },
                                "is_producer_muted_h_common": {
                                    uri: "mcl:is_producer_muted_h_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech/ipm"
                                            pattern: "RteMw_IsProducerMuted_\(shortname).h"
                                        }
                                    ]
                                },
                                "1700_-_Rte_-_Contract_Headers_common": {
                                    uri: "mxml:1700_-_Rte_-_Contract_Headers_common"
                                    visibility: "internal"
                                    locations: [
                                        {
                                            path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform/\(shortname)/Rte_CH"
                                        },
                                    ]
                                },

                                if shortname =~ "SH[0-9]+" {
                                    "rte_sc_host_fullname_asr": {
                                        uri: "mcl:rte_sc_host_fullname_asr"
                                        visibility: "internal"
                                        locations: [
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                pattern: "Rte_\(hostname).c"
                                            }
                                        ]
                                    }
                                    "rte_cfg_h_asr": {
                                        uri: "mcl:rte_cfg_h_asr"
                                        visibility: "internal"
                                        locations: [
                                            {
                                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/\(shortname)/Rte_TTTech"
                                                pattern: "Rte_Cfg.h"
                                            }
                                        ]
                                    }

                                }
                            }
                        }
                    }
                }
                // ECU-level artifacts
                artifacts : {

                    // sc_shmsvc_yaml
                    "shm_size_pp": {
                        uri: "mcl:shm_size_pp"
                        visibility: "internal"
                        locations: [
                            {
                                // Only for ECU "SH00"
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/SH00/Rte_TTTech/Shm_Interpartition"
                                pattern: "shm_size_pp.c"
                            }
                        ]
                    }

                    // sc_rte_memlayout
                    "rte_memlayout": {
                        uri: "mcl:rte_memlayout"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_memlayout_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."rte_memlayout_common",
                                }
                            }
                        ]
                    }

                    // sc_rte
                    "rte_const_c": {
                        uri: "mcl:rte_const_c"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_const_c_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."rte_const_c_common",
                                }
                            }
                        ]
                    }
                    "rte_const_h": {
                        uri: "mcl:rte_const_h"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_const_h_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."rte_const_h_common",
                                }
                            }
                        ]
                    }
                    "rte_c": {
                        uri: "mcl:rte_c"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_c_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."rte_c_common",
                                }
                            }
                        ]
                    }
                    "rte_cfg_h": {
                        uri: "mcl:rte_cfg_h"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_cfg_h_asr",
                            }
                        ]
                    }
                    "rte_internal_h": {
                        uri: "mcl:rte_internal_h"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_internal_h_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."rte_internal_h_common",
                                }
                            }
                        ]
                    }
                    "mbu_data_c": {
                        uri: "mcl:mbu_data_c"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."mbu_data_c_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."mbu_data_c_common",
                                }
                            }
                        ]
                    }
                    "mbu_data_h": {
                        uri: "mcl:mbu_data_h"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."mbu_data_h_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."mbu_data_h_common",
                                }
                            }
                        ]
                    }

                    "is_producer_muted_c": {
                        uri: "mcl:is_producer_muted_c"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."is_producer_muted_c_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."is_producer_muted_c_common",
                                }
                            }
                        ]
                    }
                    "is_producer_muted_h": {
                        uri: "mcl:is_producer_muted_h"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."is_producer_muted_h_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."is_producer_muted_h_common",
                                }
                            }
                        ]
                    }
                    "mbu_cpap_middleware_asil_c": {
                        uri: "mcl:mbu_cpap_middleware_asil_c"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."mbu_cpap_middleware_asil_c_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."mbu_cpap_middleware_asil_c_common",
                                }
                            }
                        ]
                    }
                    "mbu_cpap_middleware_asil_h": {
                        uri: "mcl:mbu_cpap_middleware_asil_h"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."mbu_cpap_middleware_asil_h_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."mbu_cpap_middleware_asil_h_common",
                                }
                            }
                        ]
                    }
                    "rte_cpap_middleware_asil_c": {
                        uri: "mcl:rte_cpap_middleware_asil_c"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_cpap_middleware_asil_c_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."rte_cpap_middleware_asil_c_common",
                                }
                            }
                        ]
                    }
                    "rte_cpap_middleware_asil_swc_c": {
                        uri: "mcl:rte_cpap_middleware_asil_swc_c"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_cpap_middleware_asil_swc_c_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."rte_cpap_middleware_asil_swc_c_common",
                                }
                            }
                        ]
                    }
                    "rte_extprofileid": {
                        uri: "mcl:rte_extprofileid"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/Rte_ExtProfileID"
                                pattern: "Rte_ExtProfileID.h"
                            },
                        ]
                    }

                    // sc_rte_no_model
                    "rte_c_no_model": {
                        uri: "mcl:rte_c_no_model"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_c_no_model_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."rte_c_no_model_common",
                                }
                            }
                        ]
                    }

                    // sc_rte_xcp
                    "rte_xcp": {
                        uri: "mcl:rte_xcp"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_xcp_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."rte_xcp_common",
                                }
                            }
                        ]
                    }
                    "rte_xcp_h": {
                        uri: "mcl:rte_xcp_h"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_xcp_h_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."rte_xcp_h_common",
                                }
                            }
                        ]
                    }

                    // sc_sh
                    "rte_sc_host_fullname": {
                        uri: "mcl:rte_sc_host_fullname"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_sc_host_fullname_asr",
                            }
                        ]
                    }

                    // sc_srv_stubs
                    "rte_srv_stubs": {
                        uri: "mcl:rte_srv_stubs"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/Srv_Stubs",
                                pattern: "[cp_swc]"
                            }
                        ]
                    }
                    "rte_srv_stubs_non_modelled": {
                        uri: "mcl:rte_srv_stubs_non_modelled"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/Srv_Stubs/Non_Modelled_Swc"
                                pattern: "Srv_Non_Modelled_Swc_Runnables.c"
                            },
                        ]
                    }

                    // sc_swu_data_types (only CP)
                    "swu_mbu_data_type": {
                        uri: "mcl:swu_mbu_data_type"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/combuf/mbu"
                                pattern: "[host]/Swu_Data_Type.h"
                            },
                        ]
                    }
                    "swu_dh_data_type": {
                        uri: "mcl:swu_dh_data_type"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/dh/Common/include"
                                pattern: "Swu_Data_Type.h"
                            },
                        ]
                    }

                    // sc_swu_docu_gen (only CP)
                    "swu_docu_client_c": {
                        uri: "mcl:swu_docu_client_c"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/swu/doc"
                                pattern: "Swu_Client.c"
                            },
                        ]
                    }
                    "swu_docu_server_c": {
                        uri: "mcl:swu_docu_server_c"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/swu/doc"
                                pattern: "Swu_Server.c"
                            },
                        ]
                    }
                    "swu_docu_h": {
                        uri: "mcl:swu_docu_h"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/swu/doc"
                                pattern: "Swu.h"
                            },
                        ]
                    }
                    "swu_docu_data_c": {
                        uri: "mcl:swu_docu_data_c"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/swu/doc"
                                pattern: "Swu_Data.c"
                            },
                        ]
                    }
                    "swu_docu_data_h": {
                        uri: "mcl:swu_docu_data_h"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/swu/doc"
                                pattern: "Swu_Data.h"
                            },
                        ]
                    }
                    "swu_docu_data_type_h": {
                        uri: "mcl:swu_docu_data_type_h"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/swu/doc"
                                pattern: "Swu_Data_Type.h"
                            },
                        ]
                    }
                    // * Not used
                    // "swu_docu_trusted": {
                    //     uri: "mcl:swu_trusted"
                    //     visibility: "internal"
                    //     locations: [
                    //         {
                    //             path: TODO
                    //         },
                    //     ]
                    // }

                    // sc_unit_files
                    "rte_const_unit": {
                        uri: "mcl:rte_const_unit"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."rte_const_unit_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."rte_const_unit_common",
                                }
                            }
                        ]
                    }
                    "sw_units": {
                        uri: "mcl:sw_units"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."sw_units_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."sw_units_common",
                                }
                            }
                        ]
                    }

                    "swc_list_rte_tttech": {
                        uri: "mcl:swc_list_rte_tttech"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."swc_list_rte_tttech_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."swc_list_rte_tttech_common",
                                }
                            }
                        ]
                    }
                    "swc_list_mbu": {
                        uri: "mcl:swc_list_mbu"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."swc_list_mbu_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."swc_list_mbu_common",
                                }
                            }
                        ]
                    }
                    "swc_list_rte_ch": {
                        uri: "mcl:swc_list_rte_ch"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."swc_list_rte_ch_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."swc_list_rte_ch_common",
                                }
                            }
                        ]
                    }
                    "swc_list": {
                        uri: "mcl:swc_list"
                        visibility: "none"
                        artifacts: [
                            system.ecus[ECU].artifacts."swc_list_rte_tttech",
                            system.ecus[ECU].artifacts."swc_list_mbu",
                            system.ecus[ECU].artifacts."swc_list_rte_ch",
                        ]
                    }

                    "swc_unit_files_rte_tttech": {
                        uri: "mcl:swc_unit_files_rte_tttech"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."swc_unit_files_rte_tttech_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."swc_unit_files_rte_tttech_common",
                                }
                            }
                        ]
                    }
                    "swc_unit_files_mbu": {
                        uri: "mcl:swc_unit_files_mbu"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."swc_unit_files_mbu_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."swc_unit_files_mbu_common",
                                }
                            }
                        ]
                    }
                    "swc_unit_files_rte_ch": {
                        uri: "mcl:swc_unit_files_rte_ch"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."swc_unit_files_rte_ch_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."swc_unit_files_rte_ch_common",
                                }
                            }
                        ]
                    }
                    
                    // sc_swu (only CP)
                    "swu_client_c": {
                        uri: "mcl:swu_client_c"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/swu/Swu_[cp_swc]/Swu_[cp_swc]_Client.c"
                            },
                        ]
                    }
                    "swu_server_c": {
                        uri: "mcl:swu_server_c"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/swu/Swu_[cp_swc]/Swu_[cp_swc]_Server.c"
                            },
                        ]
                    }
                    "swu_server_h": {
                        uri: "mcl:swu_server_h"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/swu/Swu_[cp_swc]/Swu_[cp_swc]_Server.h"
                            },
                        ]
                    }
                    "swu_h": {
                        uri: "mcl:swu_h"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/swu/Swu_[cp_swc]/Swu_[cp_swc].h"
                            },
                        ]
                    }
                    "swu_data_c": {
                        uri: "mcl:swu_data_c"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/swu/Swu_[cp_swc]/Swu_[cp_swc]_Data.c"
                            },
                        ]
                    }
                    "swu_data_h": {
                        uri: "mcl:swu_data_h"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/swu/Swu_[cp_swc]/Swu_[cp_swc]_Data.h"
                            },
                        ]
                    }
                    "swu_trusted_c": {
                        uri: "mcl:swu_trusted_c"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/swu/Swu_Trusted/Swu_Trusted.c"
                            },
                        ]
                    }
                    "swu_trusted_h": {
                        uri: "mcl:swu_trusted_h"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/swu/Swu_Trusted/Swu_Trusted.h"
                            },
                        ]
                    }
                    "swu_tttech_srv_rnbl_units": {
                        uri: "mcl:swu_tttech_srv_rnbl_units"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform"
                                pattern: "[host]/Swu_TTTech/srv_rnbls/[swc]_[rnbl].unit"  // {link.server.swcp.name}_{link.server_executable.name}.unit
                            },
                        ]
                    }
                    "swu_tttech_units": {
                        uri: "mcl:swu_tttech_units"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform"
                                pattern: "[host]/Swu_TTTech/Swu_TTTech_[cp_swc].unit"
                            },
                        ]
                    }
                    "swu_tttech_swc_list": {
                        uri: "mcl:swu_tttech_swc_list"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/build/platform"
                                pattern: "[host]/Swu_TTTech/SWC_list.xml"
                            },
                        ]
                    }

                    "1700_-_Rte_-_TTTech_Rte": {
                        uri: "mxml:1700_-_Rte_-_TTTech_Rte"
                        visibility: "none"
                        artifacts: [
                            system.ecus[ECU].artifacts."rte_const_c",
                            system.ecus[ECU].artifacts."rte_const_h",
                            system.ecus[ECU].artifacts."is_producer_muted_c",
                            system.ecus[ECU].artifacts."is_producer_muted_h",
                            system.ecus[ECU].artifacts."rte_c",
                            system.ecus[ECU].artifacts."rte_c_no_model",
                            system.ecus[ECU].artifacts."rte_cfg_h",
                            system.ecus[ECU].artifacts."rte_internal_h",
                            system.ecus[ECU].artifacts."rte_xcp",
                            system.ecus[ECU].artifacts."rte_xcp_h",
                            system.ecus[ECU].artifacts."rte_sc_host_fullname",
                            system.ecus[ECU].artifacts."rte_cpap_middleware_asil_c",
                            system.ecus[ECU].artifacts."rte_cpap_middleware_asil_swc_c",
                        ]
                    }

                    "1700_Rte_Modes_SWCP": {
                        uri: "mcl:1700_Rte_Modes_SWCP"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Rte_TTTech/Rte_[cp_swc]/Rte_Modes_[cp_swc].c"
                            }
                        ]
                    }
                    "1700_Rte_MBD_SWCP": {
                        uri: "mcl:1700_Rte_MBD_SWCP"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Rte_TTTech/Rte_[cp_swc]/Rte_MBD_[cp_swc].c"
                            }
                        ]
                    }
                    "1700_Rte_MBD_IPM_INC": {
                        uri: "mcl:1700_Rte_MBD_IPM_INC"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Rte_TTTech/ipm/mbd/RteMw_MBD_IsProducerMuted_[host].h"
                            }
                        ]
                    }
                    "1700_Rte_MBD_IPM_SRC": {
                        uri: "mcl:1700_Rte_MBD_IPM_SRC"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Rte_TTTech/ipm/mbd/RteMw_MBD_IsProducerMuted_[host].c"
                            }
                        ]
                    }
                    "1700_Rte_MS_arxmls": {
                        uri: "mcl:1700_Rte_MS_arxmls"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Rte_TTTech/Rte_MS_[host].arxml"
                            }
                        ]
                    }
                    "1700_-_Rte_-_SimulatedPage": {
                        uri: "mxml:1700_-_Rte_-_SimulatedPage"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/Simulated_Page/"
                                pattern: "Rte_Simulated_Page.c"
                            },
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte/common/Simulated_Page/"
                                pattern: "Rte_Simulated_Page.h"
                            },
                        ]
                    }
                    "1700_-_Core_-_Implementation_Templates_Global": {
                        uri: "mxml:1700_-_Core_-_Implementation_Templates_Global"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Implementation_Templates/[swc].c"
                            },
                        ]
                    }
                    "1700_-_Core_-_Implementation_Templates_Load_Stubs": {
                        uri: "mxml:1700_-_Core_-_Implementation_Templates_Load_Stubs"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/rte"
                                pattern: "[host]/Implementation_Templates_Load_Stubs/[swc].c"
                            },
                        ]
                    }
                    "1700_-_Build_-_Rte_SWU": {
                        uri: "mxml:1700_-_Build_-_Rte_SWU"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."swu_host_arxml",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."swu_host_arxml",
                                }
                            }
                        ]
                    }
                    "1700_-_Build_-_Rte_-_Contract_Headers": {
                        uri: "mxml:1700_-_Build_-_Rte_-_Contract_Headers"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."1700_-_Rte_-_Contract_Headers_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."1700_-_Rte_-_Contract_Headers_common",
                                }
                            }
                        ]
                    }
                    if system.build_config.build_caps["BC_RTE_CS"] != _|_ {
                        "1700_-_Core_-_Stack_Adapter_OperationInvokedEvent_RList": {
                            uri: "mcl:1700_-_Core_-_Stack_Adapter_OperationInvokedEvent_RList"
                            visibility: "internal"
                            locations: [
                                {
                                    path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/rws/deviations"
                                    pattern: "Stack_Adapter_OperationInvokedEvent_RList.json"
                                }
                            ]
                        }
                    }

                    if system.build_config.build_caps["BC_RTE_CS"] != _|_ {
                        "1700_-_Core_-_Stack_Adapter_ServerCallPoint_RList": {
                            uri: "mcl:1700_-_Core_-_Stack_Adapter_ServerCallPoint_RList"
                            visibility: "internal"
                            locations: [
                                {
                                    path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/rws/deviations"
                                    pattern: "Stack_Adapter_ServerCallPoint_RList.json"
                                }
                            ]
                        }
                    }

                    "1700_-_Core_-_Stack_Adapter_SR_Receive_RList": {
                        uri: "mcl:1700_-_Core_-_Stack_Adapter_SR_Receive_RList"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/rws/deviations"
                                pattern: "Stack_Adapter_SR_Receive_RList.json"
                            }
                        ]
                    }
                    "1700_-_Core_-_Stack_Adapter_SR_Send_RList": {
                        uri: "mcl:1700_-_Core_-_Stack_Adapter_SR_Send_RList"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/communication/rws/deviations"
                                pattern: "Stack_Adapter_SR_Send_RList.json"
                            }
                        ]
                    }

                    // sc_swu_ra > _generate_swu_ra_main
                    "ra_main_unit": {
                        uri: "mcl:ra_main_unit"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/SDK/RA"
                                pattern: "Swu_Ra.unit"
                            },
                        ]
                    }
                    "ra_sw_units_xml": {
                        uri: "mcl:ra_sw_units_xml"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/SDK/RA"
                                pattern: "SW_units.xml"
                            },
                        ]
                    }

                    // sc_swu_ra > _generate_swu_ra
                    "ra_client_header": {
                        uri: "mcl:ra_client_header"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."ra_client_header_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."ra_client_header_common",
                                }
                            }
                        ]
                    }
                    "ra_server_header": {
                        uri: "mcl:ra_server_header"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."ra_server_header_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."ra_server_header_common",
                                }
                            }
                        ]
                    }
                    "ra_source": {
                        uri: "mcl:ra_source"
                        visibility: "none"
                        artifacts: [
                            for hostname, shortname in hostgroup if shortname =~ "SH[0-9]+" {
                                system.ecus[ECU].hosts[hostname].artifacts."ra_source_common",
                            }
                            for hostname, shortname in hostgroup if shortname =~ "PH[0-9]+" &&
                            system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] != _|_ {
                                if system.ecus[ECU].hosts[hostname].build_caps["BC_CLASSIC_PLATFORM"] {
                                    system.ecus[ECU].hosts[hostname].artifacts."ra_source_common",
                                }
                            }
                        ]
                    }

                    // sc_swu_ra > gtests
                    "ra_gtests": {
                        uri: "mcl:ra_gtests"
                        visibility: "internal"
                        locations: [
                            {
                                path: "\(system.ecus[ECU].general_config.config_locations["generated_config"])/core/SDK/SWU_RA"
                                pattern: "gtest/remote_access_library_swu_test.cpp"
                            }
                        ]
                    }
                }
            }
        }
    }
}
</new>