@Override
public void visit(Index index) {
Index prev = current.put(index.getIndexId(), index);
IndexName name = index.getIndexName();
if(prev != null) {
failures.reportFailure(new AISValidationFailure(new DuplicateIndexIdException(prev.getIndexName(), name)));
}
Integer indexID = index.getIndexId();
if((indexID == null) || (indexID <= 0)) {
failures.reportFailure(new AISValidationFailure(new InvalidIndexIDException(name, indexID)));
}