final Character c = OSchemaShared.checkNameIfValid(iName);
if (c != null)
throw new IllegalArgumentException("Invalid index name '" + iName + "'. Character '" + c + "' is invalid");
ODatabaseInternal database = getDatabase();
OStorage storage = database.getStorage();
algorithm = chooseTreeAlgorithm(algorithm);
final String valueContainerAlgorithm = chooseContainerAlgorithm(iType);
final OIndexInternal<?> index;