class CommonUtils {

    public static int getIntOrDefault(String in, int defaultValue) {
        try {
            return Integer.parseInt(in);
        } catch (NumberFormatException ignored) {
            return defaultValue;
        }
    }

    private  CommonUtils();

}