if (indexConfigs.length >= 1) {
for (int i = 0; i < indexConfigs.length; i++) {
// Get the groups the current user has reading rights for
String[] groupArr = null;
SearchAccessController accessController = indexConfigs[i].getSearchAccessController();
if (accessController != null) {
groupArr = accessController.getUserGroups(request);
// Check the Group array
RegainToolkit.checkGroupArray(accessController, groupArr);
groupsArr.addAll(Arrays.asList(groupArr));
}
// build composed result: all groups over all indeces the user has the rights.