code: @Override
    public void writePostCommitResponse(int statusCode) throws Exception {
      if (statusCode == StatusCode.OK) {
        if (fileName != null) {
          getResponse().setHeader("Content-Disposition", "attachment; filename=" + fileName);
        }
        
        if (contentType != null && content != null) {
          getResponse().setContentType(contentType);
          getResponse().getOutputStream().write(content);
        } else if (!StringUtils.isBlank(contentUrl)) {
          handleContentUrl(); 
        }
      }
      else {
        // TODO Error handing
        switch (statusCode) {
          case StatusCode.UNAUTHORIZED:
          case StatusCode.NOT_LOGGED_IN:
            getResponse().setStatus(403);
            break;
          default:
            getResponse().setStatus(500);
            break;
        }
      }
    }
docs: Writes the response to the binary request.
  
  @throws Exception If writing the response fails for any reason