public void run() {
        boolean current = false;
        if (!this.choice.equals(Choice.NO_UPDATE)) {
            this.getJSON();
            if (this.latest != null) {
                if (this.choice.doCheck()) {
                    this.checkVersion();
                }
                if (this.choice.doDownload() && this.result == Result.UPDATE_AVAILABLE) {
                    this.download();
                }
            }
        }
        this.handleUpdate(this.result);
    }