String registrationId = String.valueOf(Integer
.parseInt(barcodeArray[1]));
String parcelId = String.valueOf(Integer.parseInt(barcodeArray[2]));
try {
Registration registration = (Registration) system
.query(new GetRegistration(registrationId));
if (system.getRegisterMachine() != null) {
windowControl.openRegisterMachineControlCenter();
new RegisterMachineParcelPayDialog(getParent().getShell(),
registration, parcelId).open();
} else {
windowControl.openRegistrationControlCenter(registration
.getStudent().getId(), registrationId);
new RegistrationParcelPaymentDialog(getParent().getShell(),
registrationId, parcelId).open();
}
} catch (Exception e) {