void () { for (JBCefCustomSchemeHandlerFactory f : ourCustomSchemeHandlerFactoryList) { getInstance().myCefApp.registerSchemeHandlerFactory(f.getSchemeName(), f.getDomainName(), f); } ourCustomSchemeHandlerFactoryList.clear(); // no longer needed getInstance().myCefApp.registerSchemeHandlerFactory( ourSourceSchemeHandlerFactory.getSchemeName(), ourSourceSchemeHandlerFactory.getDomainName(), ourSourceSchemeHandlerFactory); getInstance().myCefApp.registerSchemeHandlerFactory( JBCefFileSchemeHandlerFactory.FILE_SCHEME_NAME, "", new JBCefFileSchemeHandlerFactory()); }