class IndexCreators {

    public static void writeIndexes(Writer body, CollectionName collection, IObject options) throws Exception {
        try {
            if (options == null) {
                // no indexes definition, ignoring
                return;
            }
            for (String indexType : INDEX_WRITERS.keySet()) {
                writeCreateIndex(indexType, body, collection, options);
            }
        } catch (ReadValueException e) {
            // no indexes definition, ignoring
        }
    }

    private  IndexCreators();

}