@RequestMapping(value = "/oauth2callback.html", method = RequestMethod.GET)
public ModelAndView handleOauthResponse(
@RequestParam(value = "code") String code,
HttpServletRequest request) {
logger.info("Oauth response code is: " + code);
HttpTransport httpTransport = new NetHttpTransport();
JacksonFactory jsonFactory = new JacksonFactory();
ModelAndView mv = new ModelAndView();
try {
AccessTokenResponse googleResponse = new GoogleAuthorizationCodeGrant(
httpTransport, jsonFactory, clientId, clientSecret, code,