// Below will work, though only 1000 records will be returned.
else if (MAX_RECORDS_MAX_VALUE <= maxRecords) {
log.warn(message);
addParameter(MAX_RECORDS, Integer.toString(maxRecords));
} else // maxRecords <= 0, which is illegal.
throw new ValueOutOfBoundsException("The maxRecords value should " +
"be between 0 and " + MAX_RECORDS + " however the value was " +
"actually " + maxRecords);
return this;
}