this.pageReports.clear();
}
protected String getRequestKey() {
final Map objectModel = ContextHelper.getObjectModel(this.context);
final User user = ApplicationUtil.getUser(objectModel);
final Request request = ObjectModelHelper.getRequest(objectModel);
final Session session = request.getSession();
Integer counter = (Integer) request.getAttribute(CollectorImpl.COUNT_ATTRIBUTE);
if ( counter == null) {
counter = (Integer) session.getAttribute(CollectorImpl.COUNT_ATTRIBUTE);
if ( counter == null ) {
counter = new Integer(0);
} else {
counter = new Integer(counter.intValue() + 1);
}
session.setAttribute(CollectorImpl.COUNT_ATTRIBUTE, counter);
request.setAttribute(CollectorImpl.COUNT_ATTRIBUTE, counter);
}
return (user == null ? "anon" : user.getId()) + ':' + session.getId() + '/' + counter;
}