code: public VariableMap getAndClearCachedLocalVariableMap() {
      VariableMap cachedVariablesLocal = associationManager.getCachedLocalVariables();
      VariableMap copy = new VariableMapImpl(cachedVariablesLocal);
      cachedVariablesLocal.clear();
      return copy;
    }
docs: Get the {@link VariableMap} of local cached variables and clear the internal variable cache.
  
  @return the {@link VariableMap} of cached variables
  
  @since 7.3