code: def _patch_resource(self, method):
          
          resource = self.client.get_resource("", self.resource.path, method)
          if not resource:
              raise UnsupportedResourceMethodError(self.resource.path, method)
  
          self.resource = resource
docs: Patch the current RAML ResourceNode by the resource with the
              correct method if it exists
  
              If the resource with the specified method does not exist
              an exception is raised.
  
              :param str method: the method of the resource
  
              :raises UnsupportedResourceMethodError: if resource does not support the method