code: private static String getValue(Enum<?> value){
  		try{
  			Method m = value.getClass().getDeclaredMethod("value");
  			return (String) m.invoke(value);
  		} catch (NoSuchMethodException ex){
  		} catch (IllegalAccessException ex){
  		} catch (InvocationTargetException ex){
  		}
  		return value.toString();
  	}
docs: Intuit data enumerations have a value property which should be used in queries instead of enum names.
  @param value The enumeration for which to get the query value.
  @return The query value based on the given enumeration.