try {
// find the action method
actionMethod = getForm().getClass().getMethod(code);
// find the @Action annotation.
Action ac = actionMethod.getAnnotation(Action.class);
String eprop = ac.enabledProperty();
if(eprop!=null && !eprop.isEmpty()) {
Utils.addPropertyChangeListener(getForm(), eprop, enabledListener);
}
String sprop = ac.selectedProperty();
if(sprop!=null && !sprop.isEmpty()) {