@Override
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
if (modelAndView != null && !isRedirect(modelAndView) && handler instanceof HandlerMethod) {
HandlerMethod handlerMethod = HandlerMethod.class.cast(handler);
if (shouldIntercept(handlerMethod)) {
@SuppressWarnings({ "rawtypes", "unchecked" })
Map<String, ?> pathVariables = (Map) request.getAttribute(View.PATH_VARIABLES);
postHandleInternal(request, response, handlerMethod, modelAndView, pathVariables);