public boolean isInitialized() {
        return initialized;
    }
To prevent CSP from being initialized twice for any reason check if we already have run once when calling initialize.

@return true if CSP has already been initialized, false if not.
primefaces/src/main/java/org/primefaces/csp/CspState.java