public static Set<Bean<?>> getUiBeans(BeanManager beanManager) {
        // The annotation @CDIUI can have a value, so using it as the type
        // parameter of AnnotationLiteral is somewhat problematic.
        Set<Bean<?>> uiBeans = beanManager.getBeans(UI.class,
                new AnnotationLiteral<Any>() {
                });
        return uiBeans;
    }
public static Set<Bean<?>> getUiBeans(BeanManager beanManager) {
       
       
        Set<Bean<?>> uiBeans = beanManager.getBeans(UI.class,
                new AnnotationLiteral<Any>() {
                });
        return uiBeans;
    }
public static set<bean<?>> getuibeans(beanmanager beanmanager) { set<bean<?>> uibeans = beanmanager.getbeans(ui.class, new annotationliteral<any>() { }); return uibeans; }