if (firstResult != null) {
try {
obq.setFirstResult(Integer.parseInt(firstResult));
} catch (NumberFormatException e) {
throw new InvalidRequestException("Value of firstResult parameter is not an integer: "
+ firstResult);
}
}
if (maxResult != null) {
try {
obq.setMaxResult(Integer.parseInt(maxResult));
} catch (NumberFormatException e) {
throw new InvalidRequestException("Value of maxResult parameter is not an integer: "
+ firstResult);
}
}
if (countOperation) {