private static function validateRange($value, $min, $max)
	    {
	        $res = filter_var($value, FILTER_VALIDATE_INT, array(
	            'options' => array('min_range' => $min, 'max_range' => $max)
	        ));
	        if (false === $res) {
	            throw new OutOfRangeException("the submitted value is not contained within the valid range");
	        }

	        return $res;
	    }