class IndexFactory {

    public static Index newInstanceWithCustomKeys(final String name, final List<IndexKey> keys, final boolean unique) {
        final BsonDocument keysDocument = createKeysDocument(requireNonNull(keys));
        return Index.of(keysDocument, name, unique, unique, BACKGROUND_OPTION_DEFAULT);
    }

    private  IndexFactory();

}