public void setFieldUpdates(Collection<FieldUpdate> fieldUpdates) {
        if (fieldUpdates == null) {
            throw new NullPointerException("The field updates of a document update can not be null");
        }
        clearFieldUpdates();
        addFieldUpdates(fieldUpdates);
    }
Assigns the field updates of this document update.
Also note that no assumptions can be made on the order of item after this call.
They might have been joined if for the same field or reordered.

@param fieldUpdates the new list of updates of this
@throws NullPointerException if the argument passed is null
document/src/main/java/com/yahoo/document/DocumentUpdate.java