applyAttachedObject(ctx.getFacesContext(), parent);
}
else if (UIComponent.isCompositeComponent(parent))
{
FaceletCompositionContext mctx = FaceletCompositionContext.getCurrentInstance(ctx);
mctx.addAttachedObjectHandler(parent, this);
}
else
{
throw new TagException(this.tag, "Parent is not composite component or of type ActionSource, type is: " + parent);
}