XHTMLContentHandler xhtml =
new XHTMLContentHandler(handler, metadata);
xhtml.startDocument();
xhtml.element("p", sd.getText(0, sd.getLength()));
xhtml.endDocument();
} catch (BadLocationException e) {
throw new TikaException("Error parsing an RTF document", e);
}
}