@OnClose
        public void onClose(Session session) {
            LOG.debug("Closed connection, Session ID: " + session.getId());
            receivedResponse = true;
        }
Marian Server Web Socket Client.

@param endpointURI the endpoint URI for the Marian Server instance.
@param file        the location of the file to write the translation response to.
tika-translate/src/main/java/org/apache/tika/language/translate/impl/MarianTranslator.java