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);
} catch (InternalError e) {
throw new TikaException(
"Internal error parsing an RTF document, see TIKA-282", e);