You can store the mapping between menu item and endpoint in the session and grab it from there instead of the config. The only thing you really need to check is that the endpoint selected is still actually connected to the router, but that should probably happen for every message forwarded anyway.