protected static String serializeMetadata(List<String> metadataCommandArguments) {
        if (metadataCommandArguments != null) {
            return Arrays.toString(metadataCommandArguments.toArray());
        }
        return "";
    }
Serializes a collection of metadata command line arguments into a single
string.

@param metadataCommandArguments
@return the serialized metadata arguments string
tika-core/src/main/java/org/apache/tika/embedder/ExternalEmbedder.java