try {
int reportId = content.getReportId();
double contentLength = content.getContentLength();
if (contentLength >= CapacityUpdater.CAPACITY) {
Overload overload = m_overloadDao.createLocal();
overload.setReportId(reportId);
overload.setReportSize(contentLength);
overload.setReportType(CapacityUpdater.HOURLY_TYPE);
HourlyReport hourlyReport;
try {
hourlyReport = m_hourlyReportDao.findByPK(reportId, HourlyReportEntity.READSET_FULL);
overload.setPeriod(hourlyReport.getPeriod());
m_overloadDao.insert(overload);
} catch (DalNotFoundException e) {
} catch (Exception e) {
Cat.logError(e);