driver-core/src/main/com/mongodb/client/model/ReplaceOptions.java
@Deprecated
    public static ReplaceOptions createReplaceOptions(final UpdateOptions updateOptions) {
        notNull("updateOptions", updateOptions);

        List<? extends Bson> arrayFilters = updateOptions.getArrayFilters();
        isTrue("ArrayFilters should be empty.",  arrayFilters == null || arrayFilters.isEmpty());

        return new ReplaceOptions()
                .bypassDocumentValidation(updateOptions.getBypassDocumentValidation())
                .collation(updateOptions.getCollation())
                .upsert(updateOptions.isUpsert());
    }
@Deprecated
    public static ReplaceOptions createReplaceOptions(final UpdateOptions updateOptions) {
        notNull("updateOptions", updateOptions);

        List<? extends Bson> arrayFilters = updateOptions.getArrayFilters();
        isTrue("ArrayFilters should be empty.",  arrayFilters == null || arrayFilters.isEmpty());

        return new ReplaceOptions()
                .bypassDocumentValidation(updateOptions.getBypassDocumentValidation())
                .collation(updateOptions.getCollation())
                .upsert(updateOptions.isUpsert());
    }
Creates replace options from updateOptions.

@param updateOptions the updateOptions
@return replace options
@deprecated there is no replacement for this method