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