@Override
      public void setToBeShown(boolean value, int exitCode) {
        if (!value) {
          ref[0] = exitCode == 0;
        }
      }
@Override
      public void setToBeShown(boolean value, int exitCode)