def METHOD_NAME(self, vid, attribute=None, resolved=True, subgroup=None):
    if vid == "COMP_ROOT_DIR_CPL":
        if self._cpl_comp:
            attribute = self._cpl_comp
        elif attribute:
            self._cpl_comp = attribute
        else:
            self._cpl_comp["component"] = "cpl"
    if "COMP_ROOT_DIR" in vid:
        if vid in self.COMP_ROOT_DIR:
            if attribute is not None:
                if vid + attribute["component"] in self.COMP_ROOT_DIR:
                    return self.COMP_ROOT_DIR[vid + attribute["component"]]
            else:
                return self.COMP_ROOT_DIR[vid]
    newatt = {"comp_interface": self._comp_interface}
    if attribute:
        newatt.update(attribute)
    value = super(Files, self).METHOD_NAME(
        vid, attribute=newatt, resolved=False, subgroup=subgroup
    )
    if value is None and attribute is not None:
        value = super(Files, self).METHOD_NAME(
            vid, attribute=attribute, resolved=False, subgroup=subgroup
        )
    if value is None:
        value = super(Files, self).METHOD_NAME(
            vid, attribute=None, resolved=False, subgroup=subgroup
        )
    if (
        "COMP_ROOT_DIR" not in vid
        and value is not None
        and "COMP_ROOT_DIR" in value
    ):
        m = re.search("(COMP_ROOT_DIR_[^/]+)/", value)
        comp_root_dir_var_name = m.group(1)
        newatt = {"comp_interface": self._comp_interface}
        if attribute:
            newatt.update(attribute)
        crd_node = self.scan_optional_child(
            comp_root_dir_var_name, attributes=newatt
        )
        if crd_node:
            comp_root_dir = self.METHOD_NAME(
                comp_root_dir_var_name,
                attribute=newatt,
                resolved=False,
                subgroup=subgroup,
            )
        else:
            comp_root_dir = self.METHOD_NAME(
                comp_root_dir_var_name,
                attribute=attribute,
                resolved=False,
                subgroup=subgroup,
            )
        self.set_value(comp_root_dir_var_name, comp_root_dir, subgroup=attribute)
        if resolved:
            value = value.replace("$" + comp_root_dir_var_name, comp_root_dir)
    if resolved and value is not None:
        value = value.replace("$COMP_INTERFACE", self._comp_interface)
        value = self.get_resolved_value(value)
    return value