code: def frontend_routing(self, context):
          
  
          target_frontend = context.state[STATE_KEY]
          satosa_logging(logger, logging.DEBUG, "Routing to frontend: %s " % target_frontend, context.state)
          context.target_frontend = target_frontend
          frontend = self.frontends[context.target_frontend]["instance"]
          return frontend
docs: Returns the targeted frontend and original state
  
          :type context: satosa.context.Context
          :rtype satosa.frontends.base.FrontendModule
  
          :param context: The response context
          :return: frontend