code: @Override
  	protected WebResponse newWebResponse(final WebRequest webRequest,
  		final HttpServletResponse httpServletResponse)
  	{
  		return new ServletWebResponse((ServletWebRequest)webRequest, httpServletResponse)
  		{
  
  			@Override
  			public String encodeRedirectURL(final CharSequence url)
  			{
  				return isRobot(webRequest) ? url.toString() : super.encodeRedirectURL(url);
  			}
  
  			@Override
  			public String encodeURL(final CharSequence url)
  			{
  				return isRobot(webRequest) ? url.toString() : super.encodeURL(url);
  			}
  
  			private boolean isRobot(final WebRequest request)
  			{
  				final String agent = webRequest.getHeader("User-Agent");
  				return BotAgentInspector.isAgent(agent);
  			}
  		};
  	}
docs: Disable sessionId in the url if it comes from a robot.
  
  @param webRequest
  the web request
  @param httpServletResponse
  the http servlet response
  @return the web response