code: @Override
    public void onTimeout()
    {
      try {
        //request().sendError(WebRequest.INTERNAL_SERVER_ERROR);
        if (true) throw new UnsupportedOperationException();
      } catch (Exception e) {
        log.log(Level.FINEST, e.toString(), e);
      }
      
      closeResponse();
    }
docs: Handles a timeout.