def METHOD_NAME(self, branch=None, revision=None, repository=None,
                      project=None, codebase=None,
                      patch_body=None, patch_level=None,
                      patch_author=None, patch_comment=None,
                      patch_subdir=None):
    d = self.findOrCreateId(
        branch, revision, repository, project, codebase, patch_body,
        patch_level, patch_author, patch_comment, patch_subdir)
    d.addCallback(lambda pair: pair[0])
    return d