public static void createDiffFile( File diffFile, PlaybackSessionBean bean ) throws IOException {
XmlOptions xmlOptions = new XmlOptions();
xmlOptions.setSavePrettyPrint();
xmlOptions.setSavePrettyPrintIndent( 3 );
RecorderDiffDocument doc = createDiffSessionDocument( bean, xmlOptions );
doc.save( diffFile, xmlOptions );
}
private static RecorderDiffDocument createDiffSessionDocument( PlaybackSessionBean bean, XmlOptions options ) {
RecorderDiffDocument doc = RecorderDiffDocument.Factory.newInstance( options );
RecorderDiffDocument.RecorderDiff diff = doc.addNewRecorderDiff();