@Override
  protected void onOK() {
    boolean ok;
    ok = checkReferencedRastersIncluded();
    if (!ok) {
      return;
    }
    ok = checkFlagDatasetIncluded();
    if (!ok) {
      return;
    }

    spatialSubsetPane.cancelThumbnailLoader();
    if (productSubsetDef != null && productSubsetDef.isEntireProductSelected()) {
      productSubsetDef = null;
    }
    super.onOK();
  }
 @Override
 protected void onCancel() {
   spatialSubsetPane.cancelThumbnailLoader();
   super.onCancel();
 }