executeInTransaction(new TransactionCallback() {
@Override
public void execute() throws Exception {
int resourcesCount = 100;
int[] resourcesIds = createTestResources(resourcesCount);
ResourceCriteria criteria = new ResourceCriteria();
criteria.setCaseSensitive(false);
criteria.addFilterName(GROUP_MEMBER_CANDIDATE_NAME_PREFIX);
criteria.addSortName(ASC);
int pageNumber = 5;
int pageSize = 7;
criteria.setPaging(pageNumber, pageSize);
int[] alreadySelectedResourceIds = Arrays.copyOfRange(resourcesIds, 13, 59);
PageList<Resource> groupMemberCandidateResources = resourceManager.findGroupMemberCandidateResources(
overlord, criteria, alreadySelectedResourceIds);