Collection>
getCollection(Class> collectionType) Given any of the known collection types, this method will return an instance of the collection.
if (HashSet.class.equals(collectionType)) {
return new HashSet<Object>();
} else if (TreeSet.class.equals(collectionType)) {
return new TreeSet<Object>();
} else if (CopyOnWriteArraySet.class.equals(collectionType)) {
return new CopyOnWriteArraySet<Object>();
} else if (LinkedHashSet.class.equals(collectionType)) {
return new LinkedHashSet<Object>();
...