FormRow row = rowSet.get(0);
boolean useSubMap = !flatten && !(e instanceof Form);
if (useSubMap) {
// it's data from a different form, so put data into submap
Map<String, Object> subMap = new HashMap<String, Object>();
for (Iterator i=row.keySet().iterator(); i.hasNext();) {
String key = (String)i.next();
Object value = row.get(key);
subMap.put(key, value.toString());
}
String elementKey = e.getPropertyString(FormUtil.PROPERTY_ID);