public static String getSimulateDeviceValue(DeviceType device, DeviceVariation variation,
String desiredSDKVersion, InstrumentsVersion instrumentsVersion)
throws WebDriverException {
if (!DeviceVariation.compatibleWithSDKVersion(device, variation, desiredSDKVersion)) {
DeviceVariation
compatibleVariation =
DeviceVariation.getCompatibleVersion(device, desiredSDKVersion);
throw new WebDriverException(
String.format("%s variation incompatible with SDK %s, a compatible variation is %s",
DeviceVariation.deviceString(device, variation, instrumentsVersion.getMajor()),