{
public void requestInitialized(ServletRequestEvent sre)
{
ServletRequest servletRequest = sre.getServletRequest();
if (servletRequest instanceof HttpServletRequest) {
<BUG>HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest;
Thread.currentThread().setName(

httpServletRequest.getRequestURL() + "?" + httpServletRequest.getQueryString());</BUG>
}

{
public void requestInitialized(ServletRequestEvent sre)
{
ServletRequest servletRequest = sre.getServletRequest();
if (servletRequest instanceof HttpServletRequest) {
HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest;
String threadName = httpServletRequest.getRequestURL().toString();
if (httpServletRequest.getQueryString() != null) {
threadName += "?" + httpServletRequest.getQueryString();
