private String stripSessionID(final String uri){
  return uri.replaceFirst("(?i)(;jsessionid.*)","");
}

private String stripSessionID ( final String uri ) { return uri . replaceFirst ( "(?i)(;jsessionid.*)" , "" ) ; }
the uri is cleaned up ( the ; jsessionid is removed ) .
