this.environment = environment;
nodeMemories = new ConcurrentNodeMemories( this.ruleBase );
actionQueue = new ConcurrentLinkedQueue<WorkingMemoryAction>();
Globals globals = (Globals) this.environment.get( EnvironmentName.GLOBALS );
if ( globals != null ) {
if ( !(globals instanceof GlobalResolver) ) {
this.globalResolver = new GlobalsAdapter( globals );
} else {
this.globalResolver = (GlobalResolver) globals;