def METHOD_NAME(self):
    r"""Is collected when the sitemap is done loading, and populates the
    menu.
    """
    if self._get_sitemap_thread.sitemap is None:
        return
    try:
        _dict = safe_yaml_load(self._get_sitemap_thread.sitemap)
    except yaml.scanner.ScannerError:
        # If the sitemap was loaded but was not a valid yaml string. This
        # can happen for example when a captive portal returns something
        # invalid
        return
    if not isinstance(_dict, dict):
        return
    self.menu.clear()
    menu = self.build_menu(
        self.menu,
        cfg.online_help_base_url,
        _(u'Online help'),
        _dict,
        sub_menu=cfg.online_help_psychopy
    )
    if menu is not None:
        self.action_online_help = self.menu.addMenu(menu)
    if cfg.online_help_psychopy:
        menu = self.psychopy_help_menu()
        if menu is not None:
            self.action_psychopy_help = self.menu.addMenu(menu)
    self.menu.addSeparator()