Collection<LogEntry> result = null;
final Iterator<ILogDevice> i = logdevices.iterator();
while (i.hasNext()) {
final ILogDevice dev = i.next();
if (dev.getDeviceName().equalsIgnoreCase(deviceName)) {
result = dev.query(query, viewlogprivileges, capriviledges, maxResults);
break;
}
}
return result;
}