Use Enums.stringConverter(java.lang.Class<T>) instead. Note that the string converter has
slightly different behavior: it throws IllegalArgumentException if the enum
constant does not exist rather than returning null. It also converts null
to null rather than throwing NullPointerException. This method is
scheduled for removal in Guava 18.0.