':param  node: node
:type   node: :class:`Node`
:return: dictionary mapping metadata keys to metadata values
:rtype: dictionary mapping ``str`` to ``str``'

def ex_get_metadata(self, node):

    res = self.connection.request(('%s/metadata' % get_url_path(node.id)))
    xpath = fixxpath(res.object, 'MetadataEntry')
    metadata_entries = res.object.findall(xpath)
    res_dict = {}
    for entry in metadata_entries:
        key = entry.findtext(fixxpath(res.object, 'Key'))
        value = entry.findtext(fixxpath(res.object, 'Value'))
        res_dict[key] = value
    return res_dict
