public static PrimeFaces current() {
        return instance;
    }
Protected constructor to allow CDI proxying - and also allow customizations, or setting a mock.
primefaces/src/main/java/org/primefaces/PrimeFaces.java