private String detect(String content) {
        String language = null;

        if (!isAvailable) {
            return language;
        }

        Form form = new Form();
        form.param("user_key", userKey);
        form.param("q", content);

        Response response = client.accept(MediaType.APPLICATION_JSON).form(form);

        String json = response.readEntity(String.class);
        JsonNode element = null;
        try {
            element = new ObjectMapper().readTree(json);
        } catch (JsonProcessingException e) {
            LOG.warn("problem detecting ", e);
        }
        if (element.has("success") && element.get("success").asText().equals("true")) {
            language = element.get("lang").asText();
        }
        return language;
    }
Detects the content's language using the Lingo24 API.

@param content the <code>String</code> content to be used for detection
@return the language detected or <code>null</code> if detection failed
tika-langdetect/tika-langdetect-lingo24/src/main/java/org/apache/tika/langdetect/lingo24/Lingo24LangDetector.java