if(hasEventBehaviors) {
String clientId = ((UIComponent) component).getClientId(context);
List<ClientBehaviorContext.Parameter> params = new ArrayList<ClientBehaviorContext.Parameter>();
params.add(new ClientBehaviorContext.Parameter(Constants.CLIENT_BEHAVIOR_RENDERING_MODE, ClientBehaviorRenderingMode.OBSTRUSIVE));
ClientBehaviorContext cbc = ClientBehaviorContext.createClientBehaviorContext(context, (UIComponent) component, behaviorEvent, clientId, params);
int size = eventBehaviors.size();
boolean chained = false;
if(size > 1 || hasEventValue) {
builder.append("PrimeFaces.bcn(this,event,[");