} else try {
String indexBuilderClass = params.getProperty(indexBuilderName);
@SuppressWarnings("unchecked")
Class<AbstractIndexBuilder> _class = (Class<AbstractIndexBuilder>) Class.forName(indexBuilderClass);
Constructor<AbstractIndexBuilder> _const = _class.getDeclaredConstructor(Endpoint.class, Parameters.class);
AbstractIndexBuilder indexBuilder = _const.newInstance(endpoint, params);
set.add(indexBuilder);
} catch (Exception e) {
throw new RuntimeException("Unable to load IndexBuilder [" + indexBuilderName + "]");
}
}