SessionImpl(GlobalContext globalContext, ContentSession contentSession)
throws RepositoryException {
this.globalContext = globalContext;
this.contentSession = contentSession;
this.valueFactory = new ValueFactoryImpl(contentSession.getCoreValueFactory(), namePathMapper);
this.nsreg = new NamespaceRegistryImpl(contentSession);
this.workspace = new WorkspaceImpl(sessionContext, this.nsreg);
this.root = contentSession.getCurrentRoot();
}