@Override
public boolean buildMonthlyTask(String name, String domain, Date period) {
TransactionReport transactionReport = queryDailyReportsByDuration(domain, period,
TaskHelper.nextMonthStart(period));
MonthlyReport report = new MonthlyReport();
report.setContent("");
report.setCreationDate(new Date());
report.setDomain(domain);
report.setIp(NetworkInterfaceManager.INSTANCE.getLocalHostAddress());
report.setName(name);
report.setPeriod(period);
report.setType(1);
byte[] binaryContent = DefaultNativeBuilder.build(transactionReport);
return m_reportService.insertMonthlyReport(report, binaryContent);
}