MergeSortAlgorithm sort = new MergeSortAlgorithm();
sort.sortParcelByDate(list);
Parcel parcel = list.get(Integer.parseInt(idRegistration[1]) - 1);
if (!parcel.isPayed() && !isParcelOpen(list, parcel)) {new ParcelPaymentDialog(getShell(), registration, Integer.parseInt(idRegistration[1]) - 1, true).open();
getRegistration();
updateParcelTable();
}
} catch (Exception e) {
logger.error("GetRegistration Exception: ",e);