List<MockRepositoryDocument> filteredResults =
new MockMockList(ids, session.getSessionManager(),
session.getDocbaseName());
if (filteredResults != null) {
QueryResult filteredQR = new MockJcrQueryResult(filteredResults);
MockDmCollection finalCollection = new MockDmCollection(
filteredQR);
return finalCollection;
} else {
return null; // null value is tested in DctmAuthorizationManager