protected void createArrayProperty(String tikaKey, String ns, String propertyName,
                                       int arrayType) throws XMPException {
        String[] values = metadata.getValues(tikaKey);
        if (values != null) {
            meta.setProperty(ns, propertyName, null, new PropertyOptions(arrayType));
            for (String value : values) {
                meta.appendArrayItem(ns, propertyName, value);
            }
        }
    }
Creates an array property from a list of values.

@param tikaKey      Key in the Tika metadata map
@param ns           namespace the property should be created in
@param propertyName name of the property
@param arrayType    depicts which kind of array shall be created
@throws XMPException if the property could not be created
tika-xmp/src/main/java/org/apache/tika/xmp/convert/AbstractConverter.java