CharProducer cp = fetcher.fetch(extRef, mime).getTextualContent();
ParseTreeNode ptn = parse(is, cp, mime, mq);
return rewrite(uri, container, ptn, es53, debug);
} catch (UnsupportedEncodingException e) {
LOG.severe("Unexpected inability to recognize mime type: " + mime);
mq.addMessage(ServiceMessageType.UNEXPECTED_INPUT_MIME_TYPE,
MessagePart.Factory.valueOf(mime));
} catch (UriFetchException e) {
LOG.info("Failed to retrieve: " + e.toString());
} catch (ParseException e) {
mq.addMessage(MessageType.PARSE_ERROR, FilePosition.UNKNOWN);