final SharedList<DocRef> list = result.get(key);
if (list != null) {
Collections.sort(list, new EntityReferenceComparator());
data = list;
} else {
<BUG>data = new ArrayList<DocRef>();
}</BUG>
refresh();
}
});

final SharedList<DocRef> list = result.get(key);
if (list != null) {
Collections.sort(list, new EntityReferenceComparator());
data = list;
} else {
data = new ArrayList<>();
}
refresh();
}
});
