resp.setContentType("application/json;charset=utf-8");resp.getWriter().write(new ObjectMapper().writeValueAsString(authentication.getPrincipal()));