public void shutdown() {
        try {
            if (session != null) {
                session.destroy();
            }
        } catch (IllegalStateException e) {
            // Ignore exception on shutdown
        }
        try {
            if (documentAccess != null) {
                documentAccess.shutdown();
            }
        } catch (IllegalStateException e) {
            // Ignore exception on shutdown
        }
    }
The document retriever is responsible for retrieving documents using the Document API and printing the result to standard out.

@author bjorncs
vespaclient-java/src/main/java/com/yahoo/vespaget/DocumentRetriever.java