MethodBinding mb;
if (action != null) {
if (isValueReference(action)) {
mb = context.getApplication().createMethodBinding(action, null);
} else {
mb = new SimpleMethodBinding(action);
}
} else {
mb = new SimpleMethodBinding(action);
}
((ActionSource) component).setAction(mb);
}