'Flattens the handler if it is overlapped and adds to matchers.'

def AddMatchingHandler(self, matcher):

    if isinstance(matcher, SimpleHandler):
        self.matchers.append(matcher)
    else:
        self.matchers.extend(matcher.matchers)
