} else {
ms = new TreeSet(comparator);
}
} else {
final SortConfiguration sortConfiguration = new SortConfiguration();
sortConfiguration.useReplacementSelection(2, 2);
if (type == Triple.class) {
ms = new DBMergeSortedSet(sortConfiguration, comparator, Triple.class);
} else {
ms = new DBMergeSortedSet(sortConfiguration, comparator, null);