final DateTime oldestPortalEventTimestamp = this.portalEventDao.getOldestPortalEventTimestamp();
if (oldestPortalEventTimestamp == null || now.isBefore(oldestPortalEventTimestamp)) {
startIntervalInfo = this.intervalHelper.getIntervalInfo(AggregationInterval.YEAR, now.minus(this.dimensionBuffer));
}
else {
startIntervalInfo = this.intervalHelper.getIntervalInfo(AggregationInterval.YEAR, oldestPortalEventTimestamp.minus(this.dimensionBuffer));
}
final AggregationIntervalInfo endIntervalInfo;
final DateTime newestPortalEventTimestamp = this.portalEventDao.getNewestPortalEventTimestamp();
if (newestPortalEventTimestamp == null || now.isAfter(newestPortalEventTimestamp)) {