if (hasBadArguments(request, requiredParamNames.iterator(), validParamNames)) {
sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
sb.append(new BadArgumentException().getMessage());
} else {
try {
listRecordsMap = abstractCatalog.listRecords(oldResumptionToken);
} catch (BadResumptionTokenException e) {
sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
sb.append(e.getMessage());
}
}