def set_current_backend(cls, backend):
        "Use this method to set the backend to run the switch hooks"
        for hook in cls._backend_switch_hooks:
            hook(backend)
        cls.current_backend = backend