criteria.addFilterEndVersion(Integer.toString(request.getVersion()));
}
criteria.addFilterDriftDefinitionId(request.getDriftDefinitionId());
criteria.addFilterDriftDirectory(request.getDirectory());
criteria.setStrict(true);
criteria.fetchDrifts(true);
criteria.addSortVersion(PageOrdering.ASC);
criteria.setPageControl(PageControl.getUnlimitedInstance());//disable paging as the code assumes all the results will be returned.
PageList<? extends DriftChangeSet<?>> changeSets = findDriftChangeSetsByCriteria(subject, criteria);
for (DriftChangeSet<? extends Drift<?, ?>> changeSet : changeSets) {