// It's OOXML
TikaInputStream ooxmlStream = TikaInputStream.get(
new DocumentInputStream((DocumentEntry)ooxml)
);
ZipContainerDetector detector = new ZipContainerDetector();
MediaType type = detector.detect(ooxmlStream, new Metadata());
handleEmbeddedResource(ooxmlStream, null, type.toString(), xhtml, true);
return;
} catch(FileNotFoundException e) {
// It's regular OLE2
}