if (dataRecord.getType() != EventRecordType.RESOURCE_FINISH) {
return;
}
ResourceFinishEvent finishEvent = dataRecord.cast();
NetworkResource resource =
HintletNetworkResources.getInstance().getResourceData(finishEvent.getRequestId());
int resourceSize = resource.getDataLength();
if (resourceSize > TOTAL_BYTES_WARNING_THRESHOLD) {
addHint(getHintletName(), dataRecord.getTime(),
formatMessage(resourceSize, TOTAL_BYTES_WARNING_THRESHOLD), dataRecord.getSequence(),