new PlainTextHandler(writer, false,skipLinebreaks)); //skip ignoreable
final ToXMLContentHandler xhtmlHandler;
final ContentHandler mainHandler;
if(!plainMediaType.equals(XHTML)){ //do not parse XHTML from XHTML
xhtmlHandler = new ToXMLContentHandler();
mainHandler = new MultiHandler(textHandler,xhtmlHandler);
} else {
mainHandler = textHandler;
xhtmlHandler = null;
}
try {