@Override
    protected ContentHandler getContentHandler(ContentHandler handler, Metadata metadata,
                                               ParseContext context) {
        //set default.  This will be overwritten if it is pre-paginated
        metadata.set(Epub.RENDITION_LAYOUT, "reflowable");
        return new TeeContentHandler(super.getContentHandler(handler, metadata, context),
                new OPFHandler(metadata));
    }
Use this to parse the .opf files
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/epub/OPFParser.java