MethodExpression methodExpressionOneArg = attr.getMethodExpression(
ctx, null, ActionSourceRule.ACTION_LISTENER_SIG);
MethodExpression methodExpressionZeroArg =
expressionFactory.createMethodExpression(
ctx, methodExpressionOneArg.getExpressionString(),
Void.class, ActionSourceRule.ACTION_LISTENER_ZEROARG_SIG);
((ActionSource2) instance)
.addActionListener(new MethodExpressionActionListener(