q.setFirstResult(startIdx);
q.setMaxResults(count);
totalMatches = getSearchItemsCount(searchPath, where, searchParameters, filter);
resultList = q.getResultList();
}
final DidlXmlCreator didlLite = new DidlXmlCreator(wlb);
didlLite.setTotalMatches(totalMatches);
for (final DidlDomain dd : resultList) {
didlLite.addDidlObject(dd);
}
return didlLite;
}