if ( form.getElementGroups() != null )
{
for ( Iterator itr = form.getElementGroups().iterator(); itr.hasNext(); )
{
ElementGroup group = (ElementGroup) itr.next();
if ( group.getElements() != null )
{
populateElements( data, target, group.getElements(), form.getId() );
}
}
}
}