List<MetadataField> fieldsWithAuthoritySupport = metadataFieldWithAuthorityRP(context);
BrowseIndex bi = BrowseIndex
.getBrowseIndex(researcherPotentialMatchLookupBrowserIndex);
// now start up a browse engine and get it to do the work for us
BrowseEngine be = new BrowseEngine(context);
int count = 1;
for (NameResearcherPage tempName : names)
{
log.info("work on " + tempName.getName() + " with identifier "
+ tempName.getPersistentIdentifier() + " (" + count
+ " of " + names.size() + ")");
// set up a BrowseScope and start loading the values into it
BrowserScope scope = new BrowserScope(context);
scope.setBrowseIndex(bi);
// scope.setOrder(order);
scope.setFilterValue(tempName.getName());
// scope.setFilterValueLang(valueLang);
// scope.setJumpToItem(focus);
// scope.setJumpToValue(valueFocus);
// scope.setJumpToValueLang(valueFocusLang);
// scope.setStartsWith(startsWith);
// scope.setOffset(offset);
scope.setResultsPerPage(Integer.MAX_VALUE);
// scope.setSortBy(sortBy);
scope.setBrowseLevel(1);
// scope.setEtAl(etAl);
BrowseInfo binfo = be.browse(scope);
log.info("Find " + binfo.getResultCount()
+ "item(s) in browsing...");
bindItemsToRP(relationPreferenceService, context,
fieldsWithAuthoritySupport, tempName,
binfo.getItemResults(context));