List<String> transitionNames = new ArrayList<String>();
for (Transition transition : transitions) {
transitionNames.add(transition.getName());
}
BSHEditorDialog dialog = new BSHEditorDialog(
delegable.getDelegationConfiguration(),
transitionNames,
definition.getVariablesList());
if (dialog.open() == Dialog.OK) {
return dialog.getResult();
}
return null;
}