def METHOD_NAME(self):
    history = self.custom_args.get('history') or {}
    applications = self._get_xpath('//wsl:Applications/wsl:Application')
    extensions = self._get_xpath(
        '//wsl:Applications/wsl:Application/'
        'wsl:Extensions/uap3:Extension'
    )
    aliases = self._get_xpath(
        '//wsl:Applications/wsl:Application/'
        'wsl:Extensions/uap3:Extension/uap3:AppExecutionAlias/'
        'desktop:ExecutionAlias'
    )
    for application in applications:
        if history.get('application_id'):
            application.set('Id', history.get('application_id'))
        if history.get('launcher'):
            application.set('Executable', history.get('launcher'))
    for extension in extensions:
        if history.get('launcher'):
            extension.set('Executable', history.get('launcher'))
    for alias in aliases:
        if history.get('launcher'):
            alias.set('Alias', history.get('launcher'))