private <T extends Throwable> void logWarning(HttpServletRequest request, T e) {
   logger.warn(
       LOG_MESSAGE_TEMPLATE,
       e.getClass().getName(),
       e.getLocalizedMessage(),
       request.getRequestURI(),
       request.getQueryString());
 }
 private <T extends Throwable> void logErrorWithoutStackTrace(HttpServletRequest request, T e) {
   logger.error(
       LOG_MESSAGE_TEMPLATE,
       e.getClass().getName(),
       e.getLocalizedMessage(),
       request.getRequestURI(),
       request.getQueryString());
 }