Can you please submit a unit test. Your sample code here doesn't
reveal the problem.
Are you reusing the same instance of PayloadBuilder?
Thanks,
Mahmood
I just pushed a fix for this issue, changeset 8859c. It should be live in maven snapshot repository soon.
> I think that calling toString() should not effect the data structure.
> For example, you can't call it twice.
You can actually call it multiple times, so long as you don't mutate it after the first build ;-). The fix permits mutations between builds now.
Hope this works.
Regards,
Mahmood