@Override
    public void endEmbeddedDocument(ContentHandler contentHandler, Metadata metadata)
            throws SAXException {
        super.endEmbeddedDocument(contentHandler, metadata);
        addContent(contentHandler, metadata);
        try {
            metadataFilter.filter(metadata);
        } catch (TikaException e) {
            throw new SAXException(e);
        }

        if (metadata.size() > 0) {
            metadataList.add(ParserUtils.cloneMetadata(metadata));
        }
    }
This is called after parsing an embedded document.

@param contentHandler local contenthandler used on the embedded document
@param metadata       metadata from the embedded document
@throws SAXException
tika-core/src/main/java/org/apache/tika/sax/RecursiveParserWrapperHandler.java