/**
   * @see
   *     com.google.gwt.user.client.ui.FormPanel.SubmitCompleteHandler#onSubmitComplete(com.google.gwt.user.client.ui.FormPanel.SubmitCompleteEvent)
   */
  @Override
  public void onSubmitComplete(SubmitCompleteEvent event) {
    dialog.destroy();

    UploadResult results = UploadResult.fromResult(event.getResults());
    uploadResult = results;
    if (results.isError()) {
      if (results.getError() != null) {
        notificationService.completeProgressNotification(
            notification.getUuid(),
            i18n.format("upload-ontology-submit.upload-error.title"),
            results.getError());
      } else {
        notificationService.completeProgressNotification(
            notification.getUuid(),
            i18n.format("upload-ontology-submit.upload-error.title"),
            i18n.format("upload-ontology-submit.upload-error.msg"));
      }
    } else {
      notificationService.completeProgressNotification(
          notification.getUuid(),
          i18n.format("upload-ontology-submit.upload-complete.title"),
          i18n.format("upload-ontology-submit.upload-complete.msg"));
      if (completionHandler != null) {
        completionHandler.onImportComplete();
      }
    }
  }
 /**
  * @see
  *     com.google.gwt.user.client.ui.FormPanel.SubmitHandler#onSubmit(com.google.gwt.user.client.ui.FormPanel.SubmitEvent)
  */
 @Override
 public void onSubmit(SubmitEvent event) {
   dialog.hide(false);
   uploadResult = null;
   notification =
       notificationService.startProgressNotification(
           i18n.format("upload-ontology-submit.uploading.title"),
           i18n.format("upload-ontology-submit.uploading.msg"));
 }