@OnMessage
        public void processMessage(String message) throws IOException {
            LOG.debug("Message received: " + message);
            FileUtils.writeStringToFile(translationResult, message, Charset.defaultCharset());
            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