@Override
    public XMPMeta process(Metadata metadata) throws XMPException {
        super.setMetadata(metadata);

        createProperty(HttpHeaders.CONTENT_TYPE, XMPConst.NS_DC, "format");

        createProperty(Office.CHARACTER_COUNT, Office.NAMESPACE_URI_DOC_META, "character-count");
        createProperty(TikaCoreProperties.CREATED, XMPConst.NS_XMP, "CreateDate");
        createCommaSeparatedArray(TikaCoreProperties.CREATOR, XMPConst.NS_DC, "creator",
                PropertyOptions.ARRAY_ORDERED);
        createProperty(TikaCoreProperties.MODIFIED, XMPConst.NS_XMP, "ModifyDate");
        createProperty(TikaCoreProperties.COMMENTS, XMPConst.NS_PDFX, "Comments");
        createCommaSeparatedArray(TikaCoreProperties.SUBJECT, XMPConst.NS_DC, "subject",
                PropertyOptions.ARRAY);
        createLangAltProperty(TikaCoreProperties.DESCRIPTION, XMPConst.NS_DC, "description");
        createProperty(OfficeOpenXMLExtended.TOTAL_TIME, Office.NAMESPACE_URI_DOC_META,
                "editing-duration");
        createProperty("editing-cycles", Office.NAMESPACE_URI_DOC_META, "editing-cycles");
        createProperty("generator", XMPConst.NS_XMP, "CreatorTool");
        createProperty(Office.IMAGE_COUNT, Office.NAMESPACE_URI_DOC_META, "image-count");
        createProperty("initial-creator", Office.NAMESPACE_URI_DOC_META, "initial-creator");
        createProperty(Office.OBJECT_COUNT, Office.NAMESPACE_URI_DOC_META, "object-count");
        createProperty(PagedText.N_PAGES, XMPConst.TYPE_PAGEDFILE, "NPages");
        createProperty(Office.PARAGRAPH_COUNT, Office.NAMESPACE_URI_DOC_META, "paragraph-count");
        createProperty(Office.TABLE_COUNT, Office.NAMESPACE_URI_DOC_META, "table-count");
        createLangAltProperty(TikaCoreProperties.TITLE, XMPConst.NS_DC, "title");
        createProperty(Office.WORD_COUNT, Office.NAMESPACE_URI_DOC_META, "word-count");

        // duplicate properties not mapped:
        // nbImg | 0
        // nbObject | 0
        // nbPage | 1
        // nbPara | 3
        // nbTab | 0
        // nbWord | 5

        return super.getXMPMeta();
    }
@throws XMPException Forwards XMP errors
@see ITikaToXMPConverter#process(Metadata)
tika-xmp/src/main/java/org/apache/tika/xmp/convert/OpenDocumentConverter.java