SessionCache workspaceSession = new WritableSessionCache(context, workspaceCache, sessionContext);
MutableCachedNode workspaceRootNode = workspaceSession.mutable(workspaceSession.getRootKey());
workspaceRootNode.linkChild(workspaceSession, RepositoryCache.this.systemKey, JcrLexicon.SYSTEM);
// this will be enrolled in the active transaction
workspaceSession.save();
}
}
return workspaceCache;
}
});