def lookup_rest_method(self, orig_request):
method_name, method, params = self.config_manager.lookup_rest_method(<EOL>orig_request.path, orig_request.request_uri, orig_request.http_method)<EOL>orig_request.method_name = method_name<EOL>return method, params<EOL>
Looks up and returns rest method for the currently-pending request.

        Args:
          orig_request: An ApiRequest, the original request from the user.

        Returns:
          A tuple of (method descriptor, parameters), or (None, None) if no method
          was found for the current request.