String resultSetID = root.getResultSetName();
if (resultSetID!=null) { // you can't scan on resultSetId!
return diagnostic(SRWDiagnostic.UnsupportedIndex,
"cql.resultSetId", scanResponse);
}
TermsType terms = new TermsType();
TermList tl=getTermList(root, pos, max, request);
terms.setTerm(tl.getTerms());
scanResponse.setTerms(terms);
Vector<DiagnosticType> diagnostics = tl.getDiagnostics();
if (diagnostics!=null && !diagnostics.isEmpty()) {
DiagnosticType diagArray[] = new DiagnosticType[diagnostics.size()];