code: def val(self, name):
          
          v = getattr(self, name)
          if hasattr(v, 'retrieve_value'):
              v = v.retrieve_value(self.__dict__)
          return v
docs: retrieves a value, substituting actual
          values for ConfigValue templates.