private SessionContext(RepositoryImpl repository,
final SessionDelegate delegate) {
this.delegate = delegate;
this.repository = repository;
this.namespaces = new SessionNamespaces(this);
LocalNameMapper nameMapper = new LocalNameMapper() {
@Override
protected Map<String, String> getNamespaceMap() {
return Namespaces.getNamespaceMap(delegate.getRoot().getTree("/"));
}