code: def get_method(self, call, *args, **kwargs):
          
          method_class = self.registry.get(call.action, call.version)
          method = method_class(*args, **kwargs)
          if not method.is_available():
              raise APIError(400, "InvalidAction", "The action %s is not "
                             "valid for this web service." % call.action)
          else:
              return method
docs: Return the L{Method} instance to invoke for the given L{Call}.
  
          @param args: Positional arguments to pass to the method constructor.
          @param kwargs: Keyword arguments to pass to the method constructor.