String[] idRegistration = item[0].getText(0).split("/");
Registration registration = (Registration) system.query(new GetRegistration(idRegistration[0]));
List<Parcel> list = registration.getParcels();
if(list.size() > 0){
MergeSortAlgorithm sort = new MergeSortAlgorithm();
sort.sortParcelByDate(list);
int counter = Integer.valueOf(idRegistration[1])-1;
Parcel parcel = list.get(counter);
if (!parcel.isPayed()) {
new ParcelEditDialog(getShell(), getMySelf(), registration, counter).open();