}
if (null != dateTo) {
filter.put(DATE_TO, DateUtils.format(dateTo));
}
QueryURLBuilder query = new QueryURLBuilder(templateUrlParser, filter, getAlarmsApiRepresentation().getURITemplates(),
OPTIONAL_PARAMETERS);
String queryUrl = query.build();
if (null == queryUrl) {
return getAlarms();
}