code: public static int toInteger(Object value, int defaultValue) {
  		if (value == null || value.toString().trim().equals("")) {
  			return defaultValue;
  		}
  		if (value instanceof Integer) {
  			return (Integer) value;
  		}
  		return (int) JKConversionUtil.toDouble(value);
  	}
docs: To integer.
  
  @param value the value
  @param defaultValue the default value
  @return the int