Update java tutorial for xsrf