eliminate unnecessary method Agent.getObserverVariable