private static void ignoreStream(final InputStream stream) {
        ignoreStream(stream, true);
    }
Starts a thread that reads and discards the contents of the
standard stream of the given process. Potential exceptions
are ignored, and the stream is closed once fully processed.
Note: calling this starts a new thread and blocks the current(caller)
thread until the new thread dies

@param stream stream to be ignored
tika-core/src/main/java/org/apache/tika/parser/external/ExternalParser.java