ctx.put("Request date", new Date());
ctx.put("Request header:user-agent", request.getHeader("user-agent"));
ctx.put("Request header:referer", request.getHeader("referer"));
ctx.put("Request header:cookie", request.getHeader("cookie"));
ThreadProfile threadProfile = Profiler.lookup().getCurrentThreadProfile();
if (threadProfile != null) threadProfile.addContextProperties(ctx);
Map params = request.getParameterMap();
Iterator it = params.keySet().iterator();
while (it.hasNext()) {
String key = (String) it.next();