public static void copyProcessDefinition(IStructuredSelection selection) {
IFolder processDefinitionFolder = (IFolder) selection.getFirstElement();
IDE.saveAllEditors(new IResource[]{ processDefinitionFolder }, true);
CopyProcessDefinitionWizard wizard = new CopyProcessDefinitionWizard();
wizard.init(PlatformUI.getWorkbench(), (IStructuredSelection) selection);
WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);
dialog.open();
}