'Converts a HTTP response to a container instance
:param container_name: Name of the container
:type container_name: ``str``
:param response: HTTP Response
:type node: L{}
:return: A container instance
:rtype: :class:`Container`'

def _response_to_container(self, container_name, response):

    headers = response.headers
    extra = {'url': ('http://%s%s' % (response.connection.host, response.connection.action)), 'etag': headers['etag'], 'last_modified': headers['last-modified'], 'lease': {'status': headers.get('x-ms-lease-status', None), 'state': headers.get('x-ms-lease-state', None), 'duration': headers.get('x-ms-lease-duration', None)}, 'meta_data': {}}
    for (key, value) in response.headers.items():
        if key.startswith('x-ms-meta-'):
            key = key.split('x-ms-meta-')[1]
            extra['meta_data'][key] = value
    return Container(name=container_name, extra=extra, driver=self)
