this.ntReg.addListener(this);
this.store = store;
// setup caches with soft references to node type
// & item definition instances
ntCache = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
pdCache = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
ndCache = new ReferenceMap(ReferenceMap.HARD, ReferenceMap.SOFT);
rootNodeDef =
new NodeDefinitionImpl(ntReg.getRootNodeDef(), this, session);
ndCache.put(rootNodeDef.unwrap().getId(), rootNodeDef);
}