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