private static String fromEnum(Enum<?> value) {
    return charSequence(value.name());
  }
convert enum value to string representation which is name of enum
@see Enum#name()
criteria/geode/src/org/immutables/criteria/geode/OqlLiterals.java