def get_device(self, id=None):
        if id is None:
            if len(self._devices) == 1:
                id = self._devices.keys()[0]
            else:
                self._logger.error('Multiple devices found and no ID specified, bailing.')
                raise MobileMe.MultipleDevicesFound('Device ID must be specified.')
        return self._devices[id]