collection = (comparator == null ? new OsgiServiceList(filter, bundleContext, classLoader, proxyCreator)
: new OsgiServiceSortedList(filter, bundleContext, classLoader, comparator, proxyCreator));
delegate = Collections.unmodifiableList((List) collection);
}
else if (CollectionType.SET.equals(collectionType)) {
collection = (comparator == null ? new OsgiServiceSet(filter, bundleContext, classLoader, proxyCreator)
: new OsgiServiceSortedSet(filter, bundleContext, classLoader, comparator, proxyCreator));
delegate = Collections.unmodifiableSet((Set) collection);
}
else if (CollectionType.SORTED_LIST.equals(collectionType)) {