this.graphService.registerGraph("", new MemoryGraphSource("", graph));
}
}
if (params.routerIds.size() > 0 || params.autoScan) {
/* Auto-register pre-existing graph on disk, with optional auto-scan. */
GraphScanner graphScanner = new GraphScanner(graphService, params.autoScan);
graphScanner.basePath = graphSourceFactory.basePath;
if (params.routerIds.size() > 0) {
graphScanner.defaultRouterId = params.routerIds.get(0);
}
graphScanner.autoRegister = params.routerIds;
graphScanner.startup();
}
}