public WriteResult insert(final List<? extends DBObject> documents, final WriteConcern aWriteConcern,
                              @Nullable final DBEncoder dbEncoder) {
        return insert(documents, new InsertOptions().writeConcern(aWriteConcern).dbEncoder(dbEncoder));
    }
public WriteResult insert(final List<? extends DBObject> documents, final WriteConcern aWriteConcern,
                              @Nullable final DBEncoder dbEncoder) {
        return insert(documents, new InsertOptions().writeConcern(aWriteConcern).dbEncoder(dbEncoder));
    }
public WriteResult insert ( final List < ? extends DBObject > documents , final WriteConcern aWriteConcern , @ Nullable final DBEncoder dbEncoder ) { return insert ( documents , new InsertOptions ( ) . writeConcern ( aWriteConcern ) . dbEncoder ( dbEncoder ) ) ; }
Insert documents into a collection. If the collection does not exists on the server, then it will be created. If the new document
does not contain an '_id' field, it will be added.

@param documents     a list of {@code DBObject}'s to be inserted
@param aWriteConcern {@code WriteConcern} to be used during operation
@param dbEncoder     {@code DBEncoder} to be used
@return the result of the operation
@throws com.mongodb.DuplicateKeyException if the write failed to a duplicate unique key
@throws com.mongodb.WriteConcernException if the write failed due some other failure specific to the insert command
@throws MongoException if the operation failed for some other reason
@mongodb.driver.manual tutorial/insert-documents/ Insert Documents
Insert documents into a collection . If the collection does not exists on the server then it will be created . If the new document does not contain an _id field it will be added .