if(ignoreEvent){
return;
}
if(Boolean.valueOf(dinamic)){
StateBuilder builder = stateBuilder.type(bean.getClass()).callback(callback).entity(entity).state(state).value(value)
.oncomplete(oncomplete).update(update).outcome(outcome).title(title);
if (Boolean.valueOf(global)) {
builder.global();
}
if (Boolean.valueOf(ajax)) {
builder.ajax();
}
if (Boolean.valueOf(immediate)) {
builder.immediate();
}
if (Boolean.valueOf(resetValues)) {
builder.resetValues();
}
if (Boolean.valueOf(addEntityIdParam)) {
builder.addEntityIdParam();
}
builder.buildAndRegister();
}
else{
try{
Object managedBean = BeanManagerController.getBeanByType(bean.getClass().getSuperclass());
StateMBean stateMBean = (StateMBean)managedBean;