code: protected void initializeEnablementUI(UIBuilder builder) {
        enabled.setEnabled(hasEnablement());
        if (getSelectedProject(builder).hasFacet(CDIFacet_1_1.class))
        {
           priority.setEnabled(hasEnablement());
           builder.add(priority);
        }
        else
        {
           priority.setEnabled(false);
        }
        builder.add(enabled);
     }
docs: Note that enablement should be initialized last