def _patch_resource(self, method):
resource = self.client.get_resource("<STR_LIT>", self.resource.path, method)<EOL>if not resource:<EOL><INDENT>raise UnsupportedResourceMethodError(self.resource.path, method)<EOL><DEDENT>self.resource = resource<EOL>
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