def get_commit_req(self):
        """Lazy commit request getter."""
        if not self.commit_req:
            self.commit_req = datastore.CommitRequest()
            self.commit_req.transaction = self.tx
        return self.commit_req
Lazy commit request getter.