private static void addShutdownHook(DocumentRetriever documentRetriever) {
        Runtime.getRuntime().addShutdownHook(new Thread(documentRetriever::shutdown));
    }
The vespa-get tool retrieves documents from a Vespa Document Storage cluster, and prints them to stdout as XML.

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