QueryResults results = oql.execute(Database.READONLY);
while (results.hasMore())
{
SmallFormEntryValueImpl fev = (SmallFormEntryValueImpl)results.next();
List values = formEntryValuesMap.get(fev.getFormEntryId());
if(values == null)
{
values = new ArrayList();
formEntryValuesMap.put(fev.getFormEntryId(), values);
}
values.add(fev.getValueObject());
}
//System.out.println("formEntryValuesMap:" + formEntryValuesMap);
results.close();
oql.close();