if (devicePatternIterator != null) {
while(devicePatternIterator.hasNext() && !foundMatch) {
DevicePattern currentDevicePattern =
(DevicePattern)devicePatternIterator.next();
if (currentDevicePattern.match(userAgentString)) {
foundMatch = true;
deviceName = currentDevicePattern.getDeviceName();
}
}
}