error.getMessage().contains("Could not convert document")) {
StaticIncompatibilityErrorDialog dialog = StaticIncompatibilityErrorDialog.get();
dialog.update(error, command, alternate);
dialog.center();
} else {
StaticErrorDialog errorDialog = StaticErrorDialog.get();
errorDialog.update(error, command, alternate);
errorDialog.center();
}
}
}