* @throws ParameterBuilderException if an error occurs
*/
private void setMaxImageSize(int size, MutableParameters params)
throws ParameterBuilderException {
if (size < -1) {
throw new ParameterBuilderException("Invalid max image size '" +
size +
"'. Value must be >= -1");
}
if (!params.containsName(ParameterNames.MAX_IMAGE_SIZE)) {
setIntParam(ParameterNames.MAX_IMAGE_SIZE, size, params);