Source:
public ApplicationConnection( ApplicationConfiguration applicationConfiguration) { registry = new DefaultRegistry(this, applicationConfiguration); GWT.setUncaughtExceptionHandler( registry.getSystemErrorHandler()::handleError); StateNode rootNode = registry.getStateTree().getRootNode(); PollConfigurator.observe(rootNode, registry.getPoller()); ReconnectDialogConfiguration.bind(registry.getConnectionStateHandler()); LoadingIndicatorConfigurator.observe(rootNode, registry.getLoadingIndicator()); Element body = Browser.getDocument().getBody(); rootNode.setDomNode(body); Binder.bind(rootNode, body); if (!applicationConfiguration.isWebComponentMode()) { new PopStateHandler(registry).bind(); RouterLinkHandler.bind(registry, body); } Console.log("Starting application " + applicationConfiguration.getApplicationId()); String appRootPanelName = applicationConfiguration.getApplicationId(); appRootPanelName = appRootPanelName.replaceFirst("-\\d+$", ""); boolean productionMode = applicationConfiguration.isProductionMode(); boolean requestTiming = applicationConfiguration.isRequestTiming(); publishJavascriptMethods(appRootPanelName, productionMode, requestTiming, applicationConfiguration.getExportedWebComponents()); if (!productionMode) { String servletVersion = applicationConfiguration .getServletVersion(); publishDevelopmentModeJavascriptMethods(appRootPanelName, servletVersion); Console.log( "Vaadin application servlet version: " + servletVersion); String reloadConnectionUrl; if (applicationConfiguration.getLiveReloadPath() != null) { reloadConnectionUrl = applicationConfiguration .getContextRootUrl() + applicationConfiguration.getLiveReloadPath(); } else { reloadConnectionUrl = applicationConfiguration.getServiceUrl(); } if (applicationConfiguration.isDevmodeGizmoEnabled()) { createDevModeGizmo(reloadConnectionUrl, applicationConfiguration.getLiveReloadBackend(), applicationConfiguration.getSpringBootDevToolsPort()); } } registry.getLoadingIndicator().show(); }

Target:
public ApplicationConnection( ApplicationConfiguration applicationConfiguration) { registry = new DefaultRegistry(this, applicationConfiguration); GWT.setUncaughtExceptionHandler( registry.getSystemErrorHandler()::handleError); StateNode rootNode = registry.getStateTree().getRootNode(); PollConfigurator.observe(rootNode, registry.getPoller()); ReconnectDialogConfiguration.bind(registry.getConnectionStateHandler()); LoadingIndicatorConfigurator.observe(rootNode, registry.getLoadingIndicator()); Element body = Browser.getDocument().getBody(); rootNode.setDomNode(body); Binder.bind(rootNode, body); if (!applicationConfiguration.isWebComponentMode()) { new PopStateHandler(registry).bind(); RouterLinkHandler.bind(registry, body); } Console.log("Starting application " + applicationConfiguration.getApplicationId()); String appRootPanelName = applicationConfiguration.getApplicationId(); appRootPanelName = appRootPanelName.replaceFirst("-\\d+$", ""); boolean productionMode = applicationConfiguration.isProductionMode(); boolean requestTiming = applicationConfiguration.isRequestTiming(); publishJavascriptMethods(appRootPanelName, productionMode, requestTiming, applicationConfiguration.getExportedWebComponents()); if (!productionMode) { String servletVersion = applicationConfiguration .getServletVersion(); publishDevelopmentModeJavascriptMethods(appRootPanelName, servletVersion); Console.log( "Vaadin application servlet version: " + servletVersion); String reloadConnectionBaseUri; if (applicationConfiguration.getLiveReloadPath() != null) { reloadConnectionBaseUri = applicationConfiguration .getContextRootUrl() + applicationConfiguration.getLiveReloadPath(); } else { reloadConnectionBaseUri = applicationConfiguration.getServiceUrl(); } if (applicationConfiguration.isDevmodeGizmoEnabled()) { createDevModeGizmo(reloadConnectionBaseUri, applicationConfiguration.getLiveReloadBackend(), applicationConfiguration.getSpringBootDevToolsPort()); } } registry.getLoadingIndicator().show(); }