stat.setTopLevelDomain(reverseDNSLookupValue
.substring(reverseDNSLookupValue.lastIndexOf('.') + 1));
}
// add resolved geolocation information
GeoLocation location = Controller.getGeolocationLookupService()
.getGeoLocation(stat.getIpAddress());
if (location != null) {
stat.setCity(location.getCity());
stat.setRegion(location.getRegion());
stat.setCountry(location.getCountry());
stat.setNetSpeed(location.getNetSpeed());
}
if (!(stat.getUserAgent().startsWith("Java"))) {
sdao.writeStat(conn, stat);
}