public NodeData() {
// Setup ROOT context, this will hold all long lived intances and instanceIds
this.contextManager = new ContextManagerImpl();
this.root = new ContextImpl( ROOT,
this.contextManager );
((ContextManagerImpl) this.contextManager).addContext( this.root );
this.root.set( NODE_DATA,
this );
// Setup TEMP context, this will hold all short lived instanceId and instances
// TODO: TEMP context should have a time/utilisation eviction queue added
this.temp = new ContextImpl( TEMP,
this.contextManager,
this.root );
((ContextManagerImpl) this.contextManager).addContext( this.temp );
}