springSort = new Sort(harvesterTypeSort, harvestDateOrder);
}
Element result;
if ((uuid == null) || (uuid.equals(""))) {
result = historyRepository.findAllAsXml(springSort);
} else {
result = historyRepository.findAllAsXml(hasHarvesterUuid(uuid), springSort);
}