public PagedCollectionResource getEventsByFilter(EventFilter filter) throws SDKException {
String type = filter.getType();
Date dateFrom = filter.getFromDate();
Date dateTo = filter.getToDate();
Class fragmentType = filter.getFragmentType();
ManagedObjectRepresentation source = filter.getSource();
Map filterMap = new HashMap();
if (null != source) {
filterMap.put(SOURCE, source.getId().getValue());
}
if (null != dateFrom) {
filterMap.put(DATE_FROM, DateUtils.format(dateFrom));
}
if (null != dateTo) {