* was null and an entry had to be added.
*/
private Map targetVariantAtDevices(
Variant variant, List devices, Map device2Variant) {
for (int j = 0; j < devices.size(); j++) {
DeviceReference reference = (DeviceReference) devices.get(j);
String deviceName = reference.getDeviceName();
if (device2Variant == null) {
device2Variant = new HashMap();
}
device2Variant.put(deviceName, variant);
}