TikaInputStream stream = null;
try{
stream = TikaInputStream.get(file.createInputStream());
extractor.parseEmbedded(
stream,
new EmbeddedContentHandler(handler),
metadata, false);
AttributesImpl attributes = new AttributesImpl();
attributes.addAttribute("", "class", "class", "CDATA", "embedded");
attributes.addAttribute("", "id", "id", "CDATA", fileName);