copy

fun copy(consumed: Set<StateAndRef<U>>, produced: Set<StateAndRef<U>>, flowId: UUID? = null, type: Vault.UpdateType = UpdateType.GENERAL): Vault.Update<U>
fun copy(consumed: Set<StateAndRef<U>>, produced: Set<StateAndRef<U>>, flowId: UUID? = null, type: Vault.UpdateType = UpdateType.GENERAL, references: Set<StateAndRef<U>> = emptySet()): Vault.Update<U>

Additional copy method to maintain backwards compatibility.