'Convert a single RekallResponse.'

def Convert(self, metadata, rekall_response, token=None):

    self.rekall_response = rekall_response
    self.metadata = metadata
    if rekall_response.HasField('json_context_messages'):
        parsed_context_messages = json.loads(rekall_response.json_context_messages)
    else:
        parsed_context_messages = []
    self.context_dict = dict(parsed_context_messages)
    parsed_messages = json.loads(rekall_response.json_messages)
    for result in self.HandleMessages(parsed_messages):
        (yield result)
