'Load mapping from the data server.'

def LoadMapping(self):

    started = time.time()
    while True:
        data = self._FetchMapping()
        if data:
            mapping = rdf_data_server.DataServerMapping.FromSerializedString(data)
            return mapping
        if ((time.time() - started) > config.CONFIG['HTTPDataStore.reconnect_timeout']):
            raise HTTPDataStoreError(('Could    not    get    server    mapping    from    data    server    at    %s:%d.' % (self.Address(), self.Port())))
        time.sleep(config.CONFIG['HTTPDataStore.retry_time'])
