*/
static SystemSession create(
RepositoryContext repositoryContext, WorkspaceConfig wspConfig)
throws RepositoryException {
// create subject with SystemPrincipal
Set<SystemPrincipal> principals = Collections.singleton(new SystemPrincipal());
Subject subject = new Subject(true, principals, Collections.emptySet(), Collections.emptySet());
return new SystemSession(repositoryContext, subject, wspConfig);
}