private static int parseInteger(String str, int defaultInt) {
        if (str == null) {
            return defaultInt;
        }
        try {
            return Integer.parseInt(str);
        } catch (NumberFormatException e) {
            return defaultInt;
        }
    }
TODO duplicate code
com.navercorp.pinpoint.bootstrap.util.NumberUtils.parseInteger();
commons/src/main/java/com/navercorp/pinpoint/common/util/NetUtils.java