code: private KieServerHttpRequest closeOutput() throws IOException {
          if( connection == null ) {
              throw new KieServerHttpRequestException("Please execute a HTTP method first on the request.");
          }
          if( output == null ) {
              return this;
          }
          if( ignoreCloseExceptions ) {
              try {
                  output.close();
              } catch( IOException ignored ) {
                  // Ignored
              }
          } else {
              output.close();
          }
          output = null;
          return this;
      }
docs: Close output stream
  
  @return this request
  @throws KieServerHttpRequestException
  @throws IOException