public int getInt(String key, int defaultValue) {
        addToDefaults(key, Integer.toString(defaultValue));
        String value = get(key);
        if (value == null) {
            return defaultValue;
        }
        return Integer.parseInt(value);
    }
Returns the Integer value for the given key. If the key does not exists it will return the
default value given. The method fails if the value is not an Integer.
inlong-sort/sort-common/src/main/java/org/apache/inlong/sort/util/ParameterTool.java