*/
protected SessionImpl(
RepositoryContext repositoryContext, Subject subject,
WorkspaceConfig wspConfig)
throws AccessDeniedException, RepositoryException {
this.context = new SessionContext(repositoryContext, this, wspConfig);
this.repositoryContext = repositoryContext;
this.subject = subject;
this.userId = retrieveUserId(subject, wspConfig.getName());
long count = SESSION_COUNTER.incrementAndGet();