public ModelAndView mobileCheckIn(HttpServletRequest request,
HttpServletResponse response) throws IOException, NoSuchAlgorithmException, URISyntaxException {
final Guest guest = AuthHelper.getGuest();
long guestId = guest.getId();
checkIn(request, guestId);
final HttpSessionRequestCache requestCache = new HttpSessionRequestCache();
SavedRequest savedRequest =
requestCache.getRequest(request, response);
if (savedRequest!=null) {
final String redirectUrl = savedRequest.getRedirectUrl();
requestCache.removeRequest(request, response);
return new ModelAndView("redirect:" + redirectUrl);
}
return new ModelAndView("redirect:/app");
}