Collections.sort(allAppenders, cmp);
for (int i = 0; i < allAppenders.size(); i++) {
LogDestination dest = (LogDestination) allAppenders.get(i);
if (Collections.binarySearch(uniqueList, dest, cmp) < 0) {
if (all || dest.getFile() == null || dest.getFile().exists()) {
uniqueList.add(new DisconnectedLogDestination(dest));
}
}
}
return uniqueList;
}