// Otherwise we interpret this request as a scanner request.
if (pathSegments.length == 2
&& Bytes.toString(pathSegments[1]).toLowerCase().equals(
RESTConstants.SCANNER)) { // new scanner request
ScannerDescriptor sd = this.getScannerDescriptor(queryMap);
s.setScannerCreated(createScanner(innerModel, tableName, sd));
} else if (pathSegments.length == 3
&& Bytes.toString(pathSegments[1]).toLowerCase().equals(
RESTConstants.SCANNER)) { // open scanner request
// first see if the limit variable is present