refreshParams(context);
List<Object> entities = new ArrayList<Object>();
Collection[] collections = ContentHelper.findAllCollection(context, _start, _limit);
for (Collection c : collections) {
entities.add(trim ? new CollectionEntityTrim(c) : new CollectionEntity(c));
}
return entities;
} catch (SQLException ex) {
throw new EntityException("Internal server error", "SQL error", 500);