code: public void freeResources() throws IOException {
          if(reader != null) {
              reader.close();
          }
          if(servletInputStream != null) {
              servletInputStream.close();
          }
      }
docs: Frees any resources (namely buffers) that may be associated with this request.