for (int i = 0; i < maxDocs; i++) {
SolrDocument solrDocument = authDocs.get(i);
if (solrDocument != null) {
AuthorityValue val = AuthorityValue.fromSolr(solrDocument);
Map<String, String> extras = val.choiceSelectMap();
extras.put("insolr", val.getId());
choices.add(new Choice(val.getId(), val.getValue(), val.getValue(), extras));
alreadyPresent.add(val);
}
}