this.root = contentSession.getLatestRoot();
// FIXME: do not pass partially initialized 'this'
this.workspace = new WorkspaceImpl(this);
Map<String, String> namespaces = Maps.newHashMap();
NameMapper mapper = new LocalNameMapper(namespaces) {
@Override
protected Map<String, String> getNamespaceMap() {
return Namespaces.getNamespaceMap(root.getTree("/"));
}
};