private static ClassContextSecurityManager safeCreateSecurityManager() {
        try {
            return new ClassContextSecurityManager();
        } catch (java.lang.SecurityException sm) {
            return null;
        }
    }
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