private void description(Metadata metadata, String prefix, String uri) throws SAXException {
        int count = 0;
        for (Property property : Property.getProperties(prefix)) {
            String value = metadata.get(property);
            if (value != null) {
                if (count++ == 0) {
                    startDescription("", prefix, uri);
                }
                property(property.getName().substring(prefix.length() + 1), value);
            }
        }

        if (count > 0) {
            endDescription();
        }
    }
Ends the XMP document by writing the following footer and
clearing the namespace mappings:
<pre>
&lt;/rdf:RDF&gt;
</pre>
tika-core/src/main/java/org/apache/tika/sax/XMPContentHandler.java