@SuppressWarnings("unchecked")
@Override
public <T> JdbcIndex<T> getIndex(Class<T> model) throws IndexNotFoundException {
if (!indexExists(model)) {
throw new IndexNotFoundException("Index for model " + model.getSimpleName() + " does not exist");
}
String name = translator.translate(model);
if (registry.containsKey(name)) {
JdbcIndex cached = registry.get(name);