'Parse the XML element and return a dictionary of device properties.
Additional information can be found at http://goo.gl/GjWYBf.
@note: EBS volumes do not have a virtual name. Only ephemeral
disks use this property.
:rtype:     ``dict``'

def _to_device_mapping(self, element):

    mapping = {}
    mapping['device_name'] = findattr(element=element, xpath='deviceName', namespace=NAMESPACE)
    mapping['virtual_name'] = findattr(element=element, xpath='virtualName', namespace=NAMESPACE)
    if (mapping['virtual_name'] is None):
        mapping['ebs'] = self._get_extra_dict(element, RESOURCE_EXTRA_ATTRIBUTES_MAP['ebs_volume'])
    return mapping
