}
}
public void addDocInfoProperty(Object key, String value) throws XMPException {
if (key instanceof String)
key = new PdfName((String) key);
if (PdfName.TITLE.equals(key)) {
xmpMeta.setLocalizedText(XMPConst.NS_DC, DublinCoreProperties.TITLE, XMPConst.X_DEFAULT, XMPConst.X_DEFAULT, value);
} else if (PdfName.AUTHOR.equals(key)) {
xmpMeta.appendArrayItem(XMPConst.NS_DC, DublinCoreProperties.CREATOR, new PropertyOptions(PropertyOptions.ARRAY_ORDERED), value, null);
} else if (PdfName.SUBJECT.equals(key)) {