boolean (CefBrowser browser, String message_text, boolean is_reload, CefJSDialogCallback callback) { return myJSDialogHandler.handleBoolean(browser, handler -> { return handler.onBeforeUnloadDialog(browser, message_text, is_reload, callback); }); }