private static void addString(JsonNode node, String jsonKey, Property property,
                                  Metadata metadata) {
        if (node.has(jsonKey)) {
            if (node.get(jsonKey).isArray()) {
                for (JsonNode child : node.get(jsonKey)) {
                    String val = child
                            .asText(StringUtils.EMPTY);
                    if (! StringUtils.isBlank(val)) {
                        metadata.add(property, val);
                    }
                }
            } else {
                String val = node
                        .get(jsonKey)
                        .asText(StringUtils.EMPTY);
                if (StringUtils.isBlank(val)) {
                    return;
                }
                metadata.set(property, val);
            }
        }
    }
As default behavior, Tika runs magika to add its detection
to the metadata, but NOT to use detection in determining parsers
etc.  If this is set to <code>true</code>, this detector
will return the first mime detected by magika and that
mime will be used by the AutoDetectParser to select the appropriate
parser.

@param useMime
tika-detectors/tika-detector-magika/src/main/java/org/apache/tika/detect/magika/MagikaDetector.java