recs++;
maxReached = criteria!=null && criteria.getMaxRecords()!=null && recs>criteria.getMaxRecords();
if (maxReached) break;
final String id = (String) xPath.evaluate("identifier/text()", nd, XPathConstants.STRING);
Publishable publishable = new CommonPublishable() {
private StringUri uri = new StringUri(id);
@Override
public SourceUri getSourceUri() {
return uri;
}