private static ClassContextSecurityManager getSecurityManager() {
        if (SECURITY_MANAGER != null)
            return SECURITY_MANAGER;
        else if (SECURITY_MANAGER_CREATION_ALREADY_ATTEMPTED)
            return null;
        else {
            SECURITY_MANAGER = safeCreateSecurityManager();
            SECURITY_MANAGER_CREATION_ALREADY_ATTEMPTED = true;
            return SECURITY_MANAGER;
        }
    }
In order to call {@link SecurityManager#getClassContext()}, which is a
protected method, we add this wrapper which allows the method to be visible
inside this package.
slf4j-api/src/main/java/org/slf4j/helpers/Util.java