StringBuilder aBuf = new StringBuilder(), bBuf = new StringBuilder();
MessageContext mc = new MessageContext();
try {
a0.format(mc, aBuf);
b0.format(mc, bBuf);
} catch (IOException ex) {
throw new RuntimeException(ex);
}
return aBuf.toString().compareTo(bBuf.toString());
}