public void applyAttachedObject(FacesContext context, UIComponent parent) {
FaceletContext ctx = (FaceletContext) context.getAttributes().get(FaceletContext.FACELET_CONTEXT_KEY);
// cast to the ClientBehaviorHolder.
ClientBehaviorHolder behaviorHolder = (ClientBehaviorHolder) parent;
ValueExpression bindingExpr=null;
Behavior behavior=null;
if (null != owner.getBinding()){
bindingExpr = owner.getBinding().getValueExpression(ctx, Behavior.class);
behavior = (Behavior) bindingExpr.getValue(ctx);
}
if (null == behavior){