ClientBehaviorBase clientBehavior = (ClientBehaviorBase) behavior;
String renderType = clientBehavior.getRendererType();
if (renderType != null)
{
FacesContext ctx = FacesContext.getCurrentInstance();
ClientBehaviorRenderer cbr = ctx.getRenderKit().getClientBehaviorRenderer(renderType);
_handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), cbr);
}
}
return behavior;