String valueContainerAlgorithm = idx.field(OIndexInternal.VALUE_CONTAINER_ALGORITHM);
ODocument metadata = idx.field(OIndexInternal.METADATA);
if (indexType == null) {
OLogManager.instance().error(this, "Index type is null, will process other record.");
throw new OException("Index type is null, will process other record. Index configuration: " + idx.toString());
}
return OIndexes.createIndex(newDb, indexType, algorithm, valueContainerAlgorithm, metadata);
}