code: public Object getEnumValue(String name) {
  		if (this.kind != Kind.ENUM)
  			throw new RuntimeException("getEnumValue(..) can only be called on an enum");
  		Object[] vals = getEnumValues();
  		if (vals != null) {
  			for (Object val : vals) {
  				if (((Enum<?>)val).name().equals(name))
  					return val;
  			}
  		}
  		return null;
  	}
docs: Answer an enum value with the given name.
  @param name
  @return