I think we could just read the beans.xml content and attempt to find http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd string. If it's present, CDI 1.1 xsd should be used when parsing the document, otherwise CDI 2.0 (default).