UserRequestParams uparams = refreshParams(context);
List<Object> entities = new ArrayList<Object>();
ItemIterator items = Item.findAll(context);
while (items.hasNext()) {
entities.add(new ItemEntity(items.next(), context, uparams));
}
return entities;
} catch (SQLException ex) {
throw new EntityException("Internal server error", "SQL error", 500);