dateFrom = new ISODate(dateFromParam);
dateTo = new ISODate(dateToParam);
// TODO : if ByServiceType
if (byType) {
final List<String> serviceTypes = requestRepository.selectAllDistinctAttributes(SearchRequest_
.service);
for (String serviceType : serviceTypes) {
Element results = buildQuery(requestRepository, serviceType, dateFrom, dateTo, graphicType);
results.setAttribute("service", serviceType);