org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl bean = new
org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl();
bean.setBeanClass(annoPageBean.clazz().getName());
bean.setName(annoPageBean.name() == null ? annoPageBean.clazz().getName() : annoPageBean.name());
bean.setScope(annoPageBean.scope() == null ? "request" : annoPageBean.scope());
bean.setEager(Boolean.toString(annoPageBean.eager()));
((org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl)facesConfig).
addManagedBean(bean);
}
jsfConfiguration.setAnnotationFacesConfig(facesConfig);