def METHOD_NAME(self, name):
    for i in xrange((len(self.stack)-1), -1, -1):
        if self.stack[i] == name:
            self.stack.pop(i)
            break
    for w in self.watch:
        if self.watch[w]['collecting']:
            self.watch[w]['content'] += '</{}>'.format(name)
    for w in self.watch:
        if '/'.join(self.stack + [name]) == w:
            self.watch[w]['callback'](self.watch[w]['content'])
            self.watch[w]['collecting'] = False
            self.watch[w]['content'] = ''