private static int getInteger(String name, int defaultValue) {
        String ret = getString(name);
        if (ret != null) {
            try {
                return Integer.parseInt(ret);
            } catch (Exception ex) {
                // return defaultValue
            }
        }

        return defaultValue;
    }
private static int getInteger(String name, int defaultValue)