final Collection devicePatterns = new ArrayList();
Identification identification = loadIdentification();
Iterator iterator = identification.entries();
while (iterator.hasNext()) {
IdentificationEntry entry = (IdentificationEntry) iterator.next();
final String deviceName = entry.getDeviceName();
iterateGenericPatterns(entry, new GenericPatternIteratee() {
public void next(String pattern) {
devicePatterns.add(new String[]{deviceName, pattern});
}
});