code: public static void setCloseConnection(Stub stub, boolean close) {
          Hashtable headers = getRequestHeaders(stub);
          if (close) {
              headers.put(HTTPConstants.HEADER_CONNECTION,
                          HTTPConstants.HEADER_CONNECTION_CLOSE);
          } else {
              headers.remove(HTTPConstants.HEADER_CONNECTION);
          }
      }
docs: Sets on option on the stub to close the connection
  after receiving the reply (connection will not
  be reused).
  
  @param stub The stub to set the property on
  @param close If true, connection close will be requested. Otherwise
  connection close will not be requested.