final MasterReport report2 = (MasterReport) resource.getResource();
saveReport(report2, new File("bin/test-tmp/prd-3159-load-save-disk-2.prpt"));
// save it twice, that triggers the crash...
saveReport(report2, new File("bin/test-tmp/prd-3159-load-save-disk-2.prpt"));
final ProcessingContext processingContext = new DefaultProcessingContext();
final DebugExpressionRuntime runtime = new DebugExpressionRuntime(new DefaultTableModel(), 0, processingContext);
final Element reportElement = (Element) report2.getPageHeader().getElement(4);
final Object designValue = reportElement.getElementType().getDesignValue(runtime, reportElement);
final DefaultImageReference image = (DefaultImageReference) designValue;