{{velocity}}
#foreach ($item in $services.query.xwql("where doc.object(ProposalCode.ProposalClass).product = ''").execute())
* $item
#set ($itemDoc = $xwiki.getDocument($item))
#set ($obj = $itemDoc.getObject('ProposalCode.ProposalClass'))
#set ($discard = $obj.set('product', 'XWiki'))
#set ($discard = $itemDoc.save('Set missing product to XWiki by default', true))
#end
{{/velocity}}