public GwtcContext(GwtcService gwtcService, ClassLoader resourceLoader) { this.gwtcService = gwtcService; // Start scanning the classpath, but don't block until we need to. final Callable<ClasspathResourceMap> scanner = X_Scanner.scanClassloaderAsync(resourceLoader); classpath = new SingletonProvider<ClasspathResourceMap>() { @Override protected ClasspathResourceMap initialValue() { try { return scanner.call(); } catch (Exception e) { throw X_Debug.rethrow(e); } } }; String genName = "Gwtc" + Math.abs(hashCode() - System.nanoTime()); module = new GwtcXmlBuilder("", genName, false); module.addConfigurationProperty("xsiframe.failIfScriptTag", "FALSE"); module.setPublic("public"); }