@Override
        public void applyMetadata(FaceletContext ctx, Object instance) {
            MethodExpression expr = this.attribute.getMethodExpression(ctx, this.returnType, this.paramList);

            try {
                this.method.invoke(instance, expr);
            }
            catch (InvocationTargetException e) {
                throw new TagAttributeException(this.attribute, e.getCause());
            }
            catch (Exception e) {
                throw new TagAttributeException(this.attribute, e);
            }
        }
Optional Rule for binding Method[Binding|Expression] properties

@author Mike Kienenberger
@author Jacob Hookom

Implementation copied from Facelets 1.1.14, as it got hidden by JSF 2.0
primefaces/src/main/java/org/primefaces/facelets/MethodRule.java