def app_factory(global_conf, **local_conf):
    """
    Returns the Pulsar WSGI application.
    """
    configuration_file = global_conf.get("__file__", None)
    webapp = init_webapp(ini_path=configuration_file, local_conf=local_conf)
    return webapp