} else {
// run in GUI mode
final Injector injector = Guice.createInjector(new DCModule(configuration));
final AnalysisJobBuilderWindow analysisJobBuilderWindow = injector.getInstance(AnalysisJobBuilderWindow.class);
if (_options.isSingleDatastoreMode()) {
DatastoreCatalog datastoreCatalog = configuration.getDatastoreCatalog();
Datastore singleDatastore = _options.getSingleDatastore(datastoreCatalog);
if (singleDatastore == null) {
logger.info("Single datastore mode was enabled, but datastore was null!");
} else {
logger.info("Initializing single datastore mode with {}", singleDatastore);
}
analysisJobBuilderWindow.setDatastoreSelectionEnabled(false);
analysisJobBuilderWindow.setDatastore(singleDatastore, true);
}
analysisJobBuilderWindow.open();
final UserPreferences userPreferences = injector.getInstance(UserPreferences.class);
final WindowContext windowContext = injector.getInstance(WindowContext.class);
// set up HTTP service for ExtensionSwap installation