// get xml and pretty print it
FudgeMsgEnvelope msg = getFudgeContext().toFudgeMsg(doc.getConfig().getValue());
s_logger.debug("config doc {} converted to fudge {}", doc.getUniqueId(), msg);
StringWriter buf = new StringWriter(1024);
@SuppressWarnings("resource")
FudgeMsgWriter writer = new FudgeMsgWriter(new FudgeXMLStreamWriter(getFudgeContext(), buf));
writer.writeMessageEnvelope(msg);
s_logger.debug("config doc {} converted to xmk {}", doc.getUniqueId(), buf.toString());
try {
return prettyXML(buf.toString(), INDENTATION_SIZE);
} catch (Exception ex) {