docs: public void handle(ResourceRequest request, ResourceResponse response) throws IOException {
  		logger.debug("Handing ResourceRequest {}", request.getMethod());
  		response.setContentType(contentType);
  		InputStream input = getRequestStream(request);
  		OutputStream output = response.getPortletOutputStream();
  		handleRequest(input, output);
  		// fix to not flush within handleRequest() but outside so http status code can be set
  		output.flush();
  	}