def METHOD_NAME(appname, use=''):
    temp_apps = available_apps()
    temp_packs = available_packs()
    try:
        assert isinstance(appname, str)
    except AssertionError:
        raise PluginError("Application name is not a string: %s" % str(appname))
    if any(str(appname).lower() == val.lower() for val in temp_apps):
        logger.warning("Error: %s is already in the list of supported apps, not adding" % appname)
        return
    global available_lhcb_apps
    global available_lhcb_packs
    available_lhcb_apps.append(str(appname))
    available_lhcb_packs[str(appname)] = use
    return