private void startWebViewers(final Injector injector, final List<IsisViewer> webViewers) {
if (webViewers.size() == 0) {
return;
}
final InstallerLookup installerLookup = injector.getInstance(InstallerLookup.class);
// TODO: we could potentially offer pluggability here
final EmbeddedWebServerInstaller webServerInstaller =
installerLookup.embeddedWebServerInstaller(Isis.DEFAULT_EMBEDDED_WEBSERVER);
final EmbeddedWebServer embeddedWebServer = webServerInstaller.createEmbeddedWebServer();
for (final IsisViewer viewer : webViewers) {
final WebAppSpecification webContainerRequirements = viewer.getWebAppSpecification();
embeddedWebServer.addWebAppSpecification(webContainerRequirements);
}