private void setMetadata(Metadata metadata, HashMap<String, String> properties) {

        // every property that gets set must be non-null, or it will cause NPE
        // in other consuming applications, like Lucene
        metadata.set(Metadata.CONTENT_TYPE, clean("text/anpa-1312"));
        metadata.set(TikaCoreProperties.TITLE, clean(properties.get("title")));
        metadata.set(TikaCoreProperties.SUBJECT, clean(properties.get("subject")));
        metadata.set(TikaCoreProperties.CREATOR, clean(properties.get("author")));
        metadata.set(TikaCoreProperties.CREATED, clean(properties.get("created")));
        metadata.set(TikaCoreProperties.MODIFIED, clean(properties.get("modified")));
        metadata.set(TikaCoreProperties.SOURCE, clean(properties.get("source")));
//      metadata.set(TikaCoreProperties.PUBLISHER,     clean(properties.get("publisher")));
        metadata.set(TikaCoreProperties.PUBLISHER, clean(this.getFormatName()));

/*
        metadata.set(TikaCoreProperties.DATE, font.getHeader().getCreated().getTime());
        metadata.set(
                Property.internalDate(TikaCoreProperties.MODIFIED),
                font.getHeader().getModified().getTime());
*/
    }
scan the news messsage and store the metadata and data into a map
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-news-module/src/main/java/org/apache/tika/parser/iptc/IptcAnpaParser.java