code: String releaseOutput() {
          if( output == null ) { // occur in Rule.toString()
              return "";
          }
          String str = output.toString();
          freeOutput();
          return str;
      }
docs: Release an output buffer, return the content and restore the previous output.
  @return the content of the current output