}
String[] selectorNames = createSelectorNames(descr);
String[] colNames = columnNames.toArray(new String[columnNames.size()]);
RowIterator rowIter = qResult.getRows();
while (rowIter.hasNext()) {
Row row = rowIter.nextRow();
List<Value> values = new ArrayList<Value>();
for (RowValue rv : descr) {
values.add(rv.getValue(row));
}
/*
* get the path for the first selector and build a webdav compliant
* resource path based on it.
*
* Use Row#getPath(String) which works for both simple rows and join
* rows (in contrast to Row#getPath()).
*
* see also https://issues.apache.org/jira/browse/JCR-3089
*/
final String itemPath = row.getPath(sn.get(0));
// create a new ms-response for this row of the result set
DavResourceLocator loc = locator.getFactory().createResourceLocator(locator.getPrefix(), locator.getWorkspacePath(), itemPath, false);
String href = loc.getHref(true);
MultiStatusResponse resp = new MultiStatusResponse(href, null);
// build the s-r-property