boolean (CefBrowser browser, CefFrame frame, String requesting_url, int requested_permissions, CefMediaAccessCallback callback) { Boolean res = myPermissionHandler.handle(browser, handler -> { return handler.onRequestMediaAccessPermission(browser, frame, requesting_url, requested_permissions, callback); }); return ObjectUtils.notNull(res, false); }