// Now we can get the metadata
extractor.getMetadataExtractor().extract(metadata);
// Then finish up
handler.reallyEndDocument();
} catch (IllegalArgumentException e) {
if (e.getMessage().startsWith("No supported documents found")) {
throw new TikaException(
"TIKA-418: RuntimeException while getting content"
+ " for thmx and xps file types", e);