public boolean hasEmbeddedDocumentByteStore() {
            return embeddedDocumentBytesHandler.isPresent();
        }
This tests whether there's any type of embedded document store
...that, for example, may require closing at the end of the parse.

@return
tika-core/src/main/java/org/apache/tika/pipes/PipesServer.java