code: public Map<String, Object> getVariables() {
      final HashMap<String, Object> map = new HashMap<String, Object>();
      if (inherited != null)
        map.putAll(inherited.getVariables());
      if (variables != null)
        map.putAll(variables);
      return map;
    }
docs: Returns a read-only map with all the variables.