'Handles all messages in a Rekall response.'

def HandleMessages(self, parsed_messages):

    if (self.REKALL_MESSAGE_TABLE in self.context_dict):
        tables = [self.context_dict[self.REKALL_MESSAGE_TABLE]]
    else:
        tables = []
    for message in parsed_messages:
        if ((message[0] == self.REKALL_MESSAGE_LEXICON) and message[1]):
            logging.warn('Non-empty    lexicon    found.    Client    %s    is    too    old.', self.rekall_response.client_urn)
            break
        if (message[0] == self.REKALL_MESSAGE_TABLE):
            tables.append(message[1])
    output_class = self._GetOutputClass(self.rekall_response.plugin, self.metadata, tables)
    for message in parsed_messages:
        if (message[0] in [self.REKALL_MESSAGE_SECTION, self.REKALL_MESSAGE_TABLE]):
            self.context_dict[message[0]] = message[1]
        if (message[0] == self.REKALL_MESSAGE_ROW):
            (yield self._HandleTableRow(self.metadata, self.context_dict, message, output_class))
