code: protected HttpServletResponse getCurrentResponse() {
          final HttpServletResponse response = httpService.getCurrentResponse();
          if (response == null) {
              throw new IllegalStateException("No HttpServletResponse bound to current thread");
          }
          return response;
      }
docs: Returns the HTTP response bound to the current thread.