// Second pass for CS version < 5 to workaround some weaknesses of the CS3/4 history log
if (_ddlVersion < WGDatabase.CSVERSION_WGA5) {
// Determine conflicting log entries, where update and delete is done on the same time and the same document
Iterator wgLogsByTargetIt = wgLogsByTarget.values().iterator();
while (wgLogsByTargetIt.hasNext()) {
List logs = (List) wgLogsByTargetIt.next();
WGUtils.sortByProperty(logs, "date");
Iterator logsIt = logs.iterator();
Date lastTime = null;