Writing classification models

Thank you Sam,

I used PMML Writer as you suggested and Java Edit Variable (Simple).

Now the problem is during the loop, iteration is not updated for this issue and I can only write the first model. Then the PMML Writer gives error "File exists and can't be overwritten"

How can I solve this?