private void checkCompleted() {
        if (completed) {
            throw new IllegalStateException("ImportContext has already been consumed.");
        }
    }
@throws IllegalStateException if the context is already completed.
@see #isCompleted()
@see #informCompleted(boolean)
tika-example/src/main/java/org/apache/tika/example/ImportContextImpl.java