newPkg.getDialectRuntimeRegistry().onAdd( ruleBase.getRootClassLoader() );
newPkg.getDialectRuntimeRegistry().onBeforeExecute();
ruleBase.getGlobals().put( "map",
Map.class );
final WorkingMemory workingMemory = ruleBase.newStatefulSession();
final HashMap map = new HashMap();
workingMemory.setGlobal( "map",
map );