}
if (bd2 != null) {
bd2.getBlockDevice().setNew(true);
}
final GlobalInfo thisClass = this;
final AddDrbdConfigDialog addDrbdConfigDialog = addDrbdConfigDialogProvider.get();
addDrbdConfigDialog.init(thisClass, bd1, bd2);
final Thread thread = new Thread(new Runnable() {
@Override
public void run() {
addDrbdConfigDialog.init(thisClass, bd1, bd2);
addDrbdConfigDialog.showDialogs();
/* remove wizard parameters from hashes. */
for (final String p : bd1.getParametersFromXML()) {
bd1.widgetRemove(p, Widget.WIZARD_PREFIX);
bd2.widgetRemove(p, Widget.WIZARD_PREFIX);
}
if (addDrbdConfigDialog.isWizardCanceled()) {
final VolumeInfo dvi = bd1.getDrbdVolumeInfo();
if (dvi != null) {
dvi.removeMyself(runMode);
}
getBrowser().getDrbdGraph().stopAnimation(bd1);