if (!aggregatesByTypeList.isEmpty()) {
try {
aggregateDao.store(agentId, captureTime, aggregatesByTypeList,
sharedQueryTexts);
} catch (Throwable t) {
<BUG>logger.error("{} - {}", agentId, t.getMessage(), t);
</BUG>
responseObserver.onError(t);
return;
}

if (!aggregatesByTypeList.isEmpty()) {
try {
aggregateDao.store(agentId, captureTime, aggregatesByTypeList,
sharedQueryTexts);
} catch (Throwable t) {
logger.error("{} - {}", getAgentDisplay(agentId), t.getMessage(), t);
responseObserver.onError(t);
return;
