refreshParams(context);
List<Object> entities = new ArrayList<Object>();
Group[] groups = Group.findAll(context, Group.NAME);
for (Group g : groups) {
entities.add(new GroupEntity(g));
}
return entities;
} catch (SQLException ex) {
throw new EntityException("Internal server error", "SQL error", 500);