{
final AbstractReportDefinition reportDefinition = editorModel.getReportDefinition();
final AbstractReportDefinition element = (AbstractReportDefinition) reportDefinition.derive();
final WizardSpecification spec = editorModel.getReportSpec();
element.setAttribute(AttributeNames.Wizard.NAMESPACE, "enable", Boolean.TRUE);
WizardProcessorUtil.applyWizardSpec(element, (WizardSpecification) spec.clone());
WizardProcessorUtil.ensureWizardProcessorIsAdded(element, null);
if (element instanceof MasterReport)
{
dialog.setReportJob((MasterReport) element);