ValueBinding vb = new LegacyValueBinding(expr);
UIXComponent uixcomp = (UIXComponent) instance;
FacesBean bean = uixcomp.getFacesBean();
PropertyKey mainKey = bean.getType().findKey(_mainMethodName);
if (mainKey == null)
throw new TagAttributeException(_attribute,
"No support for '" + _mainMethodName +
"' attribute on " + instance);
PropertyKey accessKeyKey = bean.getType().findKey("accessKey");
if (accessKeyKey == null)
throw new TagAttributeException(_attribute,
"No support for 'accessKey' attribute on " + instance);
VirtualAttributeUtils.setAccessKeyAttribute(bean, vb, mainKey, accessKeyKey);
}