ModelRequest request = new ModelRequest(domain, payload.getDate()).setProperty("type", payload.getType())
.setProperty("ip", ipAddress);
if (m_service.isEligable(request)) {
ModelResponse<TransactionReport> response = m_service.invoke(request);
TransactionReport report = response.getModel();
if (payload.getPeriod().isLast()) {
Date start = new Date(payload.getDate());
Date end = new Date(payload.getDate() + TimeHelper.ONE_HOUR);
if (Constants.ALL.equals(domain)) {
report = m_reportService.queryTransactionReport(domain, start, end);
}
Set<String> domains = m_reportService.queryAllDomainNames(start, end, TransactionAnalyzer.ID);
Set<String> domainNames = report.getDomainNames();
domainNames.addAll(domains);
}
return report;
} else {