*/
public SimilarTypesListModelAdapter(final Map<String, ? extends XSObjectList> similarTypes) {
data = Collections.unmodifiableMap(similarTypes);
// use TreeMap to provide a sorted list view to the user
Map<XSObject, String> map = new TreeMap<XSObject, String>(new NameComparator());
// expand all values of the map and construct a list representing each
// value of the map associated to its key.
for (Entry<String, ? extends XSObjectList> entry : data.entrySet()) {
XSObjectList list = entry.getValue();
for (int i = 0; null != list && i < list.getLength(); ++i) {