String auid = getLatestNewStarMessage().getStarInfo().getAuid();
String name = ob.getName();
int uniqueId = ob.getRecordNumber();
DiscrepantReportDialog reportDialog = new DiscrepantReportDialog(
auid, ob);
if (!reportDialog.isCancelled()) {
try {
Mediator.getUI().setCursor(
Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
Authenticator.getInstance().authenticate();
String userName = ResourceAccessor.getLoginInfo()
.getUserName();
String editor = "vstar:" + userName;
if (dialog != null) {
dialog.setVisible(false);
}
// Create and submit the discrepant report.
DiscrepantReport report = new DiscrepantReport(auid, name,
uniqueId, editor, reportDialog.getComments());
IDiscrepantReporter reporter = ZapperLogger.getInstance();
reporter.lodge(report);