code: def _lookup_required_session(self, key):
          
          session = self.session_handler.do_get_session(key)
          if (not session):
              msg = ("Unable to locate required Session instance based "
                     "on session_key [" + str(key) + "].")
              raise ValueError(msg)
          return session
docs: :returns: SimpleSession