}
public static String prettyPrint( JsonObject oldConfig ) throws RuntimeException {
StringWriter writer = new StringWriter();
try {
oldConfig.writeTo( new PrettyPrintJsonWriter( writer ) );
} catch( IOException exception ) {
// StringWriter does not throw IOExceptions
throw new RuntimeException( exception );
}
return writer.toString();