docs: @SuppressWarnings("WeakerAccess")
  	protected List<IBaseResource> toResourceList(ISearchBuilder sb, List<Long> pidsSubList) {
  		Set<Long> includedPids = new HashSet<>();
  		if (mySearchEntity.getSearchType() == SearchTypeEnum.SEARCH) {
  			includedPids.addAll(sb.loadIncludes(myContext, myEntityManager, pidsSubList, mySearchEntity.toRevIncludesList(), true, mySearchEntity.getLastUpdated(), myUuid));
  			includedPids.addAll(sb.loadIncludes(myContext, myEntityManager, pidsSubList, mySearchEntity.toIncludesList(), false, mySearchEntity.getLastUpdated(), myUuid));
  		}
  
  		// Execute the query and make sure we return distinct results
  		List<IBaseResource> resources = new ArrayList<>();
  		sb.loadResourcesByPid(pidsSubList, resources, includedPids, false, myEntityManager, myContext, myDao);
  
  		return resources;
  	}