class ConfigFieldValidation {

    public static boolean isShortAndInRange (Object value, short min, short max) {
        boolean result = false;
        if (isInteger(value)) {
            Integer i = (Integer) value;
            result = isInRange(i, min, max);
        }
        return result;
    }

}