docs: public static String stripURL(String url,boolean checkQuestionMark)
  	{
  	    if (url == null)
  	        return null;
  
  	    int index1 = url.indexOf(sessUrlRewritePrefix);
  	    if (checkQuestionMark){
  	        int index2 = url.indexOf("?");
  
  	        if (index2 != -1)
  	        {
  	            if ( index1 > index2 )
  	                throw new IllegalArgumentException( "'jsessionid' Must occur before '?' in URL." );
  	            url = url.substring(0, index2);
  	        }
  	    }
  
  	    if (index1 != -1)
  	    {
  	        // No query string so just remove the jsessionid
  	        url = url.substring(0, index1);
  	    }
  
  	    return url;     
  	}