'Get profile after passing through Cobbler\'s inheritance engine.
@param str name system name
@param str token authentication token'

def get_system_as_rendered(self, name, token=None, **rest):

    self._log('get_system_as_rendered', name=name, token=token)
    obj = self.api.find_system(name=name)
    if (obj is not None):
        _dict = utils.blender(self.api, True, obj)
        image_based = False
        profile = obj.get_conceptual_parent()
        distro = profile.get_conceptual_parent()
        mcs = _dict['mgmt_classes']
        _dict['mgmt_classes'] = {}
        for m in mcs:
            c = self.api.find_mgmtclass(name=m)
            if c:
                _dict['mgmt_classes'][m] = c.to_dict()
        arch = None
        if ((distro is None) and (profile.COLLECTION_TYPE == 'image')):
            image_based = True
            arch = profile.arch
        else:
            arch = distro.arch
        if obj.is_management_supported():
            if (not image_based):
                _dict['pxelinux.cfg'] = self.tftpgen.write_pxe_file(None, obj, profile, distro, arch)
            else:
                _dict['pxelinux.cfg'] = self.tftpgen.write_pxe_file(None, obj, None, None, arch, image=profile)
        return self.xmlrpc_hacks(_dict)
    return self.xmlrpc_hacks({})
