code: public static String decodeUri(String url)
  	{
  		int index1 = url.indexOf(sessUrlRewritePrefix);
  		int index2 = url.indexOf(qMark);
  
  		String tmp = null;
  		if (index2 != -1 && index2 > index1)
  		{
  			tmp = url.substring(index2);
  		}
  		if (index1 != -1)
  		{
  			url = url.substring(0, index1);
  			if (tmp != null)
  			{
  				url = url + tmp;
  			}
  		}
  		return url;
  	}
docs: Strips out the sessionId only form the URI
  
  @param url
  @return