// mark this session as 'active' so the workspace does not get disposed
// by the workspace-janitor until the garbage collector is done
// TODO: review again... this workaround is now used in several places.
repository.onSessionCreated(systemSession);
WorkspaceConfig conf = repository.getConfig().getWorkspaceConfig(workspaceName);
WorkspaceSecurityConfig secConf = (conf == null) ? null : conf.getSecurityConfig();
synchronized (acProviders) {
provider = acProviderFactory.createProvider(systemSession, secConf);
acProviders.put(workspaceName, provider);
}
}