code: static ChangeEvent<BsonDocument> changeEventForLocalInsert(
        final MongoNamespace namespace,
        final BsonDocument document,
        final boolean writePending
    ) {
      final BsonValue docId = BsonUtils.getDocumentId(document);
      return new ChangeEvent<>(
          new BsonDocument(),
          OperationType.INSERT,
          document,
          namespace,
          new BsonDocument("_id", docId),
          null,
          writePending);
    }
docs: Generates a change event for a local insert of the given document in the given namespace.
  
  @param namespace the namespace where the document was inserted.
  @param document the document that was inserted.
  @return a change event for a local insert of the given document in the given namespace.