code: public static int toIntegerWithDefault(Object value, int defaultValue) {
  		Integer result = toNullableInteger(value);
  		return result != null ? (int) result : defaultValue;
  	}
docs: Converts value into integer or returns default value when conversion is not
  possible.
  
  @param value        the value to convert.
  @param defaultValue the default value.
  @return integer value or default when conversion is not supported.
  
  @see IntegerConverter#toNullableInteger(Object)