Exception.getMessage());         map.put("path", request.getServletPath());         map.put("timestamp", String.valueOf(new Date().getTime()));         response.setContentType("application/json");         response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);         try {             ObjectMapper mapper = new ObjectMapper();             mapper.writeValue(response.getOutputStream(), map);         } catch (Exception e) {             throw new ServletException();         }     } 