def process_item(self, item):
    if (self.data_buffer is not None):
        if (not self.data_buffer.key_exists(key=item)):
            data = self.data_processing_chain.process(**item['data'])
            meta = self.meta_processing_chain.process(**item['meta'])
            self.data_buffer.set(key=item, data=data, meta=meta)
        else:
            (data, meta) = self.data_buffer.get(key=item)
    else:
        data = self.data_processing_chain.process(**item['data'])
        meta = self.meta_processing_chain.process(**item['meta'])
    return (data, meta)
def process_item(self, item):
    if (self.data_buffer is not None):
        if (not self.data_buffer.key_exists(key=item)):
            data = self.data_processing_chain.process(**item['data'])
            meta = self.meta_processing_chain.process(**item['meta'])
            self.data_buffer.set(key=item, data=data, meta=meta)
        else:
            (data, meta) = self.data_buffer.get(key=item)
    else:
        data = self.data_processing_chain.process(**item['data'])
        meta = self.meta_processing_chain.process(**item['meta'])
    return (data, meta)