if (limitParameter.isEmpty()) {
throw new NullArgumentException("Parameter '" + PARAMETER_LIMIT + "' cannot be empty.");
}
int limitParameterValue = Integer.parseInt(limitParameter);
if (limitParameterValue <= 0) {
<BUG>throw new OutOfRangeException(limitParameterValue, 0, Integer.MAX_VALUE);
}</BUG>
String skipParameter = req.getParameter(PARAMETER_SKIP);
if (skipParameter == null) {
skipParameter = "" + PARAMETER_SKIP_DEFAULT;

if (limitParameter.isEmpty()) {
throw new NullArgumentException("Parameter '" + PARAMETER_LIMIT + "' cannot be empty.");
}
int limitParameterValue = Integer.parseInt(limitParameter);
if (limitParameterValue <= 0) {
throw new Exception("Out of range value '" + limitParameterValue + "' (admitted " + 0 + " to " + Integer.MAX_VALUE + ").");
}
String skipParameter = req.getParameter(PARAMETER_SKIP);
if (skipParameter == null) {
skipParameter = "" + PARAMETER_SKIP_DEFAULT;
