code: public OutputStream removeThreadStream() {
          final OutputStream orig = inheritOutputStream.get();
          inheritOutputStream.set(null);
          return orig;
      }
docs: Remove the custom stream for the current thread.
  @return thread bound OutputStream or null if none exists