public static IndexConfig[] getAllIndexConfigArr(PageRequest request) throws RegainException {
loadConfiguration(request);
String[] indexNameArr;
indexNameArr = mConfig.getAllIndexNameArr();
if (indexNameArr == null) {
throw new RegainException("There are no Indizes defined in the search configuration "
+ "no index configured");
}
// Get the configurations for these indexes
IndexConfig[] configArr = new IndexConfig[indexNameArr.length];
for (int i = 0; i < indexNameArr.length; i++) {
configArr[i] = mConfig.getIndexConfig(indexNameArr[i]);
if (configArr[i] == null) {
throw new RegainException("The configuration does not contain the index '" + indexNameArr[i] + "'");
}
}
return configArr;
}