}
final SortConfiguration sortConfiguration = new SortConfiguration();
sortConfiguration.useReplacementSelection(2, 2);
final DBMergeSortedMap ms = new DBMergeSortedMap(sortConfiguration, comparator, null);
if (size == 0) {
return (E) ms;
}
final Class typeKey = Registration.deserializeId(this)[0];
final Class typeValue = Registration.deserializeId(this)[0];
for (int i = 0; i < size; i++) {
Serializable value;
Serializable key;
try {
value = (Serializable) Registration.deserializeWithoutId(typeValue, this);
key = (Serializable) Registration.deserializeWithoutId(typeKey, this);
ms.put(key, value);
} catch (final URISyntaxException e) {
System.out.println(e);
e.printStackTrace();
}
}