docs: def field_or_value(clause):
      """
      For a clause that could be a field or value,
      create the right one and return it
  
      """
      if hasattr(clause, "getName") and clause.getName() != "field":
          return Value(resolve(clause))
      else:
          return Field(clause)