'This method stores the MBR.'

@flow.StateHandler()
def StoreMBR(self, responses):

    if (not responses.success):
        msg = ('Could    not    retrieve    MBR:    %s' % responses.status)
        self.Log(msg)
        raise flow.FlowError(msg)
    response = responses.First()
    self.state.buffers.append(response.data)
    self.state.bytes_downloaded += len(response.data)
    if (self.state.bytes_downloaded >= self.args.length):
        mbr_data = ''.join(self.state.buffers)
        self.state.buffers = None
        mbr = aff4.FACTORY.Create(self.client_id.Add('mbr'), aff4_grr.VFSFile, mode='w', token=self.token)
        mbr.write(mbr_data)
        mbr.Close()
        self.Log(('Successfully    stored    the    MBR    (%d    bytes).' % len(mbr_data)))
        self.SendReply(rdfvalue.RDFBytes(mbr_data))
