List<SimpleParameterEntry> wieParams = new ArrayList<SimpleParameterEntry>();
wieParams.add(new SimpleParameterEntry(SysViewWorkspaceInitializer.RESTORE_PATH_PARAMETER, new File(url
.getFile()).getParent()));
WorkspaceInitializerEntry wiEntry = new WorkspaceInitializerEntry();
wiEntry.setType(RdbmsWorkspaceInitializer.class.getCanonicalName());
wiEntry.setParameters(wieParams);
newEntry.setInitializer(wiEntry);
TesterRdbmsWorkspaceInitializer initializer =
new TesterRdbmsWorkspaceInitializer(newEntry, repositoryService.getRepository("db3").getConfiguration(),
cacheableDataManager, null, null, null, (ValueFactoryImpl)valueFactory, null, repositoryService, new FileCleanerHolder());
// restore single -> multi
helper.addWorkspace(repositoryService.getRepository("db1"), newEntry);
dsName = helper.createDatasource();
newEntry =
helper.createWorkspaceEntry(true, dsName,
helper.getValueStorageIds(workspaceEntry.getContainer().getValueStorages()));
wieParams = new ArrayList<SimpleParameterEntry>();
wieParams.add(new SimpleParameterEntry(SysViewWorkspaceInitializer.RESTORE_PATH_PARAMETER, new File(url
.getFile()).getParent()));
wiEntry = new WorkspaceInitializerEntry();
wiEntry.setType(RdbmsWorkspaceInitializer.class.getCanonicalName());
wiEntry.setParameters(wieParams);
newEntry.setInitializer(wiEntry);
helper.addWorkspace(repositoryService.getRepository("db1"), newEntry);
String newIndexPath = newEntry.getQueryHandler().getParameterValue("index-dir");